This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > May 2004 > A Simple XML Edit/Delete problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author A Simple XML Edit/Delete problem
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

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews