【发布时间】:2011-04-06 17:48:43
【问题描述】:
嘿, 我在 C#.NET 应用程序中使用 DevExpress LookupEdit。我想清除 LookupEdit 中的所有项目。请帮助
代码:
lkpLabItem.Properties.DataSource = null;
lkpLabItem .Properties.DataSource = _lab.selectChemicals ();
lkpLabItem.Properties.DisplayMember = "labitem_Name";
lkpLabItem.Properties.ValueMember = "labItem_ID";
lkpLabItem.Properties.BestFitMode = BestFitMode.BestFit;
lkpLabItem.Properties.SearchMode = SearchMode.AutoComplete;
lkpLabItem.Properties.Columns.Add(new LookUpColumnInfo("labitem_Name", 100, "Lab Items"));
lkpLabItem.Properties.AutoSearchColumnIndex = 1;
谢谢。
【问题讨论】:
标签: c# winforms devexpress repositorylookupedit