海,我在 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;
谢谢你。