Recreate dataview/datatable/dataset from Datagrid

Z

Zachary Heilman

I've loaded a text file to a dataset and then bound it to a Datagrid.
There isn't much data, but there are two related tables in the file.
Instead of repopulating the dataset and comparing changes to the
datagrid I would like to keep it disconnected and just repopulate a
datatable from the Datagrid post back's viewstate. I've come up with
several options, but none are too good. I'm using a strong typed
dataset to populate the Datagrid and I would like to repopulate it
with the datagrid data on postback. However, I am trying not to use a
session variable of the Dataset. Can anyone post an example of
recreating a dataview/datatable from the datagrid postback (maybe
using enumeration and looping through the grid?).
 

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
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top