Fetching data from a datagrid

  • Thread starter Thread starter ameen.abdullah
  • Start date Start date
A

ameen.abdullah

Hi Guys,

I have a datagrid which is binded to dataset which is gettting data
from xml. Now i need to know if i edit or add data to the datagrid,
whats the best possible way to fetch it? .. i need to fetch the data
and put it in another xml file to update.

Thanks in adv guys
 
Ameen,

When the user changes data in the datagrid, the data in the underlying
datatable is changed.

You should be able to use the datatable's or dataset's WriteXML method to
save the changed data to a file.

Kerry Moorman
 
Thanks Kerry for the reply. After readin it, i tried to do this

Dim mIOStream As Stream
mDScolumns.WriteXml(mIOStream)
Dim x As XmlDocument
x.Load(mIOStream)
MsgBox(x.InnerXml)

but got null exception :(
 
Back
Top