| Ing. Rajesh Kumar 2004-05-22, 7:31 pm |
| Hi everybody
I am reading a *.XML file in *.aspx page and binding it to a DataGrid where i have the options to delete or edit an entry. Works fine. But as soon as i add the sort command as follows :
'Dim myView as DataView = DT.DefaultView
'myView.Sort = "COLUMNNAME DESC"
DataGrid1.DataSource = DT
DataGrid1.DataBind()
then I have problems to delete and edit. DataGrid still delete and edit but not the required row. For example if i try to delete the first visible row in the sorted DataGrid, it does not delete the first visible row but the actual first row(node) in the *.xml file.
How can i fix this ?
Thanks in advance
Raja
|