自定义组合框列表 [英] customize combobox list

查看:62
本文介绍了自定义组合框列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何用自定义列表替换组合框中的列表?
我的意思是,我想创建一个包含多个列的组合框>我打算将网格用作列表,并在用户控件中替换它,并为其添加一些其他功能.怎么可能?
提前感谢.

How can we replace the list in combobox with a customize list?
I mean, I want to create a combobox with multiple columns in it> I am planning to use a grid as a list and replace it in my usercontrol and add some other functionalities to it. How is it possible?
Thanx in advance.

推荐答案

ComboBox 没有内置功能来显示其中的多列.为此,可以从头开始创建控件,也可以从ComboBox派生并自定义其功能来创建控件.在这方面,下面的代码项目"文章可能会有所帮助.
MultiColumnComboBoxEx:扩展了数据绑定的多列ComboBox [ ^ ]
并在本文中引用了另外两篇文章.
这些文章使用C#编写,但是对于理解该概念以及
The ComboBox does not have built in functionality to display multiple columns in it. For this purpose a control can be created either from scratch or by deriving from ComboBox and customizing its functionality. In this regard th following Code Project article may be helpful.
MultiColumnComboBoxEx: An Extended Data-Bound Multiple Column ComboBox[^]
and two more articles were referred in this article.
These article are in C#, however they may be helpful to under stand the concept and to


这篇关于自定义组合框列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆