Fetching data from a datagrid

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ameen.abdullah@gmail.com

    #1

    Fetching data from a datagrid

    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

  • Kerry Moorman

    #2
    RE: Fetching data from a datagrid

    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.abdullah @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
    >
    >

    Comment

    • ameen.abdullah@gmail.com

      #3
      Re: Fetching data from a datagrid

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

      Dim mIOStream As Stream
      mDScolumns.Writ eXml(mIOStream)
      Dim x As XmlDocument
      x.Load(mIOStrea m)
      MsgBox(x.InnerX ml)

      but got null exception :(

      Kerry Moorman wrote:
      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.abdullah @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

      Comment

      Working...