如何在组合框中显示两列

编程入门 行业动态 更新时间:2024-10-11 23:26:07
本文介绍了如何在组合框中显示两列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我希望在组合框上显示代码和描述列,并且在选择特定行时只能在组合框上显示代码.

解决方案

尝试一个其中: 带有链接文本框的可搜索多列组合框 [ ^ ] 一个数据绑定的多列组合框 [ ^ ] 多列组合框 [ ^ ] CP上可能有更多的多列组合框文章.有一个很好的发现方法:使用搜索功能! 注意:所有这些都在C#中,但是正如我多次指出的那样:您不需要在VB中包含代码,只需将其编译为dll并从您的VB项目中引用它即可.

此 [ ^ ]线程(向下滚动以从Microdeveloper进行回答)中包含一些声称可以执行此操作的代码.

I want to display code and description column on a combobox and be able to display only code on the combobox when a particular row is selected.

解决方案

Try one of these: Searchable MultiColumn ComboBox with Linked TextBox[^] A data-bound multi-column combobox[^] Multi Column ComboBox[^] There could be more multi-column combobox articles here on the CP... There''s a good way to find out: Use the search function! NOTE: All of these are in C#, but as I''ve pointed out several times: You don''t need to have the code in VB, just compile it to a dll and reference it from your VB project.

This[^] thread on DaniWeb (Scroll down to answer from Microdeveloper) has some code that claims to be able to do this.

更多推荐

如何在组合框中显示两列

本文发布于:2023-11-22 02:01:53,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1615545.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:组合   框中   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!