Produce a Dataset from a Grid

  • Thread starter Thread starter Filippo Pandiani
  • Start date Start date
F

Filippo Pandiani

I have a grid that shows the file list from a folder.
On the postback, how do I get a Dataset from this grid?


Thanks,
Filippo.
 
I did this by saving the dataset as a XML string into a custom ViewState
property of the grid. You can use the DataSet.GetXML before posts and
DataSet.ReadXML on postbacks.

dryer
 
Dryer,

The grid loads different XML files.

The user makes changes on the grid (Add, Upd, Del) and then when he wants to
store the changes, he will click the SAVE button.

....at that point, I need to resave and override the current XML on disk.

Where can I get the DataSet from this scenario?

Thanks,
Filippo.





dryer said:
I did this by saving the dataset as a XML string into a custom ViewState
property of the grid. You can use the DataSet.GetXML before posts and
DataSet.ReadXML on postbacks.

dryer
 
Back
Top