ADAdministrator Syncfusion Team April 21, 2004 04:32 PM
There are KB''s on locating the DataRow at the current position, but not one on getting the DataRow at an abitrary index. Here is code that I think will locate the DataRow at a given grid row index, say rowIndex.
CurrencyManager cm = (CurrencyManager) this.BindingContext[this.grid.DataSource, this.grid.DataMember];
int pos = this.grid.Binder.RowIndexToPosition(rowIndex);
DataRowView drv = cm.List[pos] as DataRowView;
DataRow dr = drv.Row;