G
Guest
I have a CustomerTable which is a DataTable.
I have a PersonalDataView which is a DataView.
The code below returns the row index of the table beautifully.
Any pointers on how to get the row index of the DataView?
Thanks,
Randy
DataRow dr = CustomerTable.Rows.Find(CustomerId);
if(dr != null)
{
positionIndex = CustomerTable.Rows.IndexOf(dr);
//How do I modify the following line to get the IndexOf the
DataView
//int viewIndex =
((IList<DataView>)PersonalDataView).IndexOf(dr);
}
I have a PersonalDataView which is a DataView.
The code below returns the row index of the table beautifully.
Any pointers on how to get the row index of the DataView?
Thanks,
Randy
DataRow dr = CustomerTable.Rows.Find(CustomerId);
if(dr != null)
{
positionIndex = CustomerTable.Rows.IndexOf(dr);
//How do I modify the following line to get the IndexOf the
DataView
//int viewIndex =
((IList<DataView>)PersonalDataView).IndexOf(dr);
}