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());