Hi,
i have a problem with the DataView/DataGrid.
I have a DataTable with DataRows inside. I create a DataView and use the DataTable as DataSource.
After this I create a DataGrid and use the DataView as DataSource.
Now i want to select a specfic DataRow of the DataTable in the DataGrid with the "CurrentRowIndex" - Property.
But I need the index of the DataRow in the DataGrid to use this property.
My problem is: How can I get the index of the DataRow in the DataGrid?
I tested the "Find" - Method of the DataView.
The method searches only in the current Sort - Columns ("DataView.Sort"
.
But I must search with the primarykey - columns to find the DataRow.
Knows one how I can do this.
i have a problem with the DataView/DataGrid.
I have a DataTable with DataRows inside. I create a DataView and use the DataTable as DataSource.
After this I create a DataGrid and use the DataView as DataSource.
Now i want to select a specfic DataRow of the DataTable in the DataGrid with the "CurrentRowIndex" - Property.
But I need the index of the DataRow in the DataGrid to use this property.
My problem is: How can I get the index of the DataRow in the DataGrid?
I tested the "Find" - Method of the DataView.
The method searches only in the current Sort - Columns ("DataView.Sort"
But I must search with the primarykey - columns to find the DataRow.
Knows one how I can do this.