Page 2 of 2

Dependent combobox?

Posted: Thu Nov 27, 2008 6:08 pm
by Edward
Hi, Jennifer.

Please use the following code:

Code: Select all

DataGridCell myCell;
myCell = GridControl1.Control.CurrentCell;
DataTable myTable;
// Assumes the DataGrid is bound to a DataView.
myTable = ((DataView) GridControl1.Control.DataSource).Table;
MessageBox.Show(myTable.Rows[myCell.RowNumber][myCell.ColumnNumber].ToString());
Thank you.