Fetching data from a datagrid

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
 
G

Guest

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
 
A

ameen.abdullah

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 :(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top