AD
Administrator
Syncfusion Team
November 26, 2003 07:02 PM UTC
You need to go through the CurrencyManager to get the datarow in a datatable that has been sorted or filtered. Here are some snippets.
CurrencyManager cm = (CurrencyManager) this.BindingContext[this.gridDataBoundGrid1.DataSource, this.gridDataBoundGrid1.DataMember];
DataRowView drv = (DataRowView) cm.List[gridRowIndex];
DataRow dr = drv.Row;
Console.WriteLine(dr["Col2"].ToString());