New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.
int rowPos = this.grid.Binder.RowIndexToPosition(e.RowIndex);
int colPos = this.grid.Binder.ColIndexToField(e.ColIndex);
object val = dataTable1.Rows[rowPos][colPos];
If you are supporting sorting then you need to access the values through the CurrencyManager.
CurrencyManager cm = (CurrencyManager) this.grid.BindingContext[this.grid.DataSource, this.grid.DataMember];
int rowPos = this.grid.Binder.RowIndexToPosition(e.RowIndex);
int colPos = this.grid.Binder.ColIndexToField(e.ColIndex);
object val = ((DataRowView)cm.List[rowPos])[colPos];