D
Diamonds
Hello,
In my DataGrid for ASP.NET C#,
In the UI the user adds rows to the DataGrid and the values are saved
in a DataTable.
The DataTable is displayed by using a DataView. The DataView is sorted
then bound to the DataGrid.
The DataGrid allows editing. It knows which row to change based on
Item.ItemIndex. However, it is using the ItemIndex of the DataView. I
need to map the DataView index to the DataTable index to edit the
correct row.
The sort is = "Col1, Col2 ASC".
Am I doing this correctly?
How would I get the related DataTable row?
In my DataGrid for ASP.NET C#,
In the UI the user adds rows to the DataGrid and the values are saved
in a DataTable.
The DataTable is displayed by using a DataView. The DataView is sorted
then bound to the DataGrid.
The DataGrid allows editing. It knows which row to change based on
Item.ItemIndex. However, it is using the ItemIndex of the DataView. I
need to map the DataView index to the DataTable index to edit the
correct row.
The sort is = "Col1, Col2 ASC".
Am I doing this correctly?
How would I get the related DataTable row?