Produce a Dataset from a Grid

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.
 
D

dryer

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
 
F

Filippo Pandiani

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
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top