AD
Administrator
Syncfusion Team
October 16, 2003 12:54 PM UTC
To handle things like the grid being sorted or filtered, it best to go through the CurrencyManager. Here is some code.
int pos = grid.Binder.RowIndexToPosition(rowIndex);
CurrencyManager cm = (CurrencyManager) this.BindingContext[grid.DataSource, grid.DataMember];
DataRowView drv = (DataRowView) cm.List[pos];
DataRow dr = drv.Row;
DL
Doug Lind
October 16, 2003 12:58 PM UTC
Mucho Garcia ;-)
> To handle things like the grid being sorted or filtered, it best to go through the CurrencyManager. Here is some code.
>
>
> int pos = grid.Binder.RowIndexToPosition(rowIndex);
> CurrencyManager cm = (CurrencyManager) this.BindingContext[grid.DataSource, grid.DataMember];
> DataRowView drv = (DataRowView) cm.List[pos];
> DataRow dr = drv.Row;
>