本文介绍了MultiColumn组合框-Auotocomplte模式问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨我正在使用MTGCCombobox dll的多列组合框.
我的代码是
cmb.Items.Clear(); cmb.LoadingType = MTGCComboBox.CaricamentoCombo.DataTable; cmb.SourceDataString = new string[2] { "Id", "Name" }; cmb.SourceDataTable = dtbl;
组合框AutoComplteMode = RecommendationAppend.
问题是当我在组合上键入时,第一列"Id"的值显示出来.
如何更改显示成员.这样,在选择之后,组合将显示第二列名称"的值?
在此先感谢您.
解决方案
hi
i''m using a multicolumn combobox using the MTGCCombobox dll.
My code is
cmb.Items.Clear(); cmb.LoadingType = MTGCComboBox.CaricamentoCombo.DataTable; cmb.SourceDataString = new string[2] { "Id", "Name" }; cmb.SourceDataTable = dtbl;
Combobox AutoComplteMode = SuggestAppend.
The problem is when i type on the combo the value of first Column "Id" is showing.
How can I change the displaymember. so that after the selection is made the combo will show value of second column "Name"?
Thanks in advance.
解决方案
这篇关于MultiColumn组合框-Auotocomplte模式问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!