AD
Administrator
Syncfusion Team
March 31, 2005 02:10 PM UTC
You need to use the CurrencyManager to access the data if it can possibly be sorted.
int pos = grid.Binder.RowIndexToPosition(e.RowIndex);
CurrencyManager cm = (CurrencyManager) grid.BindingContext[grid.DataSource, grid.DataMember];
DataRowView drv = (DataRowView)cm.List[pos];
//DataRow dr = drv.Row;
MessageBox.Show(string.Format("{0} {1}", drv["1"], drv["2"]));