I tried your blog but still not able to get this working. I am using VB.NET.
I can get the selected row from the grid, but how can I update the XML file with this data? How would I know which node corresponds to the selected row in the grid. Would some one be able to help me? Thanks a bunch for your help, in advace.
Here is the code that I've written looking at your solution, but Key(0) would return the value and not the key and hence nothing is getting updated.
Dim myXMLDoc As XmlDocument = Me.myTestXML.GetXmlDocument()
Dim strElementId As String = e.Keys(0)
Dim selectedElement As XmlNode = myXMLDoc.GetElementById(strElementId)
Dim objAttribute As XmlAttribute
Dim strAttributeName As String = ""
strAttributeName = objAttribute.Name.ToString
selectedElement.Attributes(strAttributeName).Value = e.NewValues(strAttributeName).ToString
Dim arrAttributes As XmlAttributeCollection = selectedElement.Attributes()
For Each objAttribute In arrAttributes
strAttributeName = objAttribute.Name.ToString
selectedElement.Attributes(strAttributeName).Value = e.NewValues(strAttributeName).ToString
Next
myTestXML.Save()
GridView1.DataBind()