C# devExpress.XtraGrid.GridControl winform和c中的两个链接lookupEdit#
我有个问题。比如, 查找编辑数据源绑定中3.columns 5.cells处的gridControl或动态1.columns 5.cells、2.columns 5.cells。。。在lookUpEdit数据源绑定中C# devExpress.XtraGrid.GridControl winform和c中的两个链接lookupEdit#,c#,winforms,devexpress,C#,Winforms,Devexpress,我有个问题。比如, 查找编辑数据源绑定中3.columns 5.cells处的gridControl或动态1.columns 5.cells、2.columns 5.cells。。。在lookUpEdit数据源绑定中 数据源:firebird或sqlServer(数据集) 组件:devExpress gridControl gridView 提前感谢…我认为,您应该使用知识库文章中演示的方法: void gridView1_ShownEditor(object sender, EventAr
- 数据源:firebird或sqlServer(数据集)
- 组件:devExpress gridControl gridView
提前感谢…我认为,您应该使用知识库文章中演示的方法:
void gridView1_ShownEditor(object sender, EventArgs e) {
ColumnView view = (ColumnView)sender;
if (view.FocusedColumn.FieldName == "CityCode" && view.ActiveEditor is LookUpEdit) {
LookUpEdit edit = (LookUpEdit)view.ActiveEditor;
string countryCode = (string)view.GetFocusedRowCellValue("CountryCode");
edit.Properties.DataSource = GetFilteredCities(countryCode);
}
}
请参阅示例,其中该方法在实际操作中显示 你能分享一些代码吗?以更好地了解问题。这是您的设置。这有什么问题?如何绑定到gridView中选定单元格中lookupEdit(RepositoryItemLookUpEdit)的数据源?我没有代码:(