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.
object val = this.grid[rowIndex, colIndex].CellValue;
to retreive a value from a specific row and column whether or not the grid has been sorted.
Do you want to try to retrieve a specific DataRow from the underlying DataTable given that you know a rowindex in a sorted grid? If so, you can use the CurrencyManager to retrieve the DataRow.
CurrencyManager cm = this.grid.BindingCOntext[this.grid.DataSource, this.grid.DataMember] as CurrencyManager;
DataView dv = cm.List as DataView;
int position = this.grid.Binder.RowIndexToPosition(grivenRowIndex);
DataRow dr = dv[position].Row;