我有一个网格视图,其中有一列“ItemCode”。列 columnEdit 属性已设置为允许用户选择项目的 searchLookupEdit。它的价值只出现在特定的行为上。
以下是设计器代码。
// repositoryItemSearchLookUpEditItemCode
//
this.repositoryItemSearchLookUpEditItemCode.AutoHeight = false;
this.repositoryItemSearchLookUpEditItemCode.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
this.repositoryItemSearchLookUpEditItemCode.Name = "repositoryItemSearchLookUpEditItemCode";
this.repositoryItemSearchLookUpEditItemCode.PopupView = this.repositoryItemSearchLookUpEdit1View;
//
// repositoryItemSearchLookUpEdit1View
//
this.repositoryItemSearchLookUpEdit1View.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFocus;
this.repositoryItemSearchLookUpEdit1View.Name = "repositoryItemSearchLookUpEdit1View";
this.repositoryItemSearchLookUpEdit1View.OptionsSelection.EnableAppearanceFocusedCell = false;
this.repositoryItemSearchLookUpEdit1View.OptionsView.ShowGroupPanel = false;
当窗体首次显示时,网格控件的数据源已设置为 DataTable。
gridControl1.DataSource = myCreditMemo.Details;
网格视图中的所有值都按预期显示,但带有 searchLookupEdit 的列除外
将dataSource属性设置为DataTable后如何让值立即出现?