本文介绍了如何隐藏DevExpress LookUpEdit Control的列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用带有DXperience-12.1.10的Visual Studio 2012在Visual Studio中使用devExpress控件。
i试图搜索解决方案,但是我给出了Specified属性的解释方式不符合。
或在我的项目中找到。
i am using the Visual Studio 2012 with DXperience-12.1.10 to use devExpress Control in Visual Studio..
i had tried to search the solution but the way explanation given to me that Specified property does not meet.
or found in my project.
even i gone threw this sit [referred link ][1]
![this property does not found in my project ][2]
[1]: http://stackoverflow.com/questions/14727975/how-to-hide-dictionary-key-in-lookupedit-using-c
[2]: http://i.stack.imgur.com/EPP2l.jpg
推荐答案
LookUpEdit lookup = new LookUpEdit();
DataTable dtSource = new DataTable();
dtSource.Columns["id"].ColumnMapping = MappingType.Hidden;
lookup.ItemsSource = dtSource.DefaultView;
lookup.ValueMember = dtSource.Columns["id"].ColumnName;
lookup.DisplayMember = dtSource.Columns["NAME"].ColumnName;
这篇关于如何隐藏DevExpress LookUpEdit Control的列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!