Home All Groups Group Topic Archive Search About

Fetching data from a datagrid

Author
28 Jul 2006 3:49 PM
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

Author
28 Jul 2006 3:57 PM
Kerry Moorman
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


Show quoteHide quote
"ameen.abdul***@gmail.com" wrote:

> 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
>
>
Author
28 Jul 2006 4:15 PM
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 :(

Kerry Moorman wrote:
Show quoteHide quote
> 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
>
>
> "ameen.abdul***@gmail.com" wrote:
>
> > 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
> >
> >