Hi I have the following requirement: A grid control in devexpress for winform. Column 1 for this grid is a repositoryItemCheckedComboBoxEdit, how could I get the current row and then reset the datasource for the repositoryItemCheckedComboBoxEdit just for this row?
Can I set the datasource for a column in grid, only for one specific row?
3.6k Views Asked by spspli At
2
Such tasks are usually implemented using the GridView's ShownEditor event. You should determine the currently focused column and its FieldName (GridView.FocusedColumn.FieldName) and then change the editor's DataSource property based on the value saved in another cell of this record. I.e.
Also, please take a look at the How to filter a second LookUp column based on a first LookUp column's value article where a similar task is resolved.