Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dataset/datagrid

Status
Not open for further replies.

Zarcom

Programmer
May 7, 2002
1,275
CA
Sorry guys I am having a stupid day here.

How or can I load a dataset from a datagrid?

I have a dataset that is loaded by a user selected items from a drop down. As the items are selected that item plus other info is displayed in my grid. Thing is when the page is refreshed in any way such as selecting another item the first item selected goes away as datasets aren't carried over from one refresh to another. One way I had thought of would be to reload the dataset from the datagrid before the new row is added to it.

The second dataset isn't built from a database at all but from the data on the page.

Grr. me need to eat. mm food That'l do donkey, that'l do
[bravo] Mark
 
This would be a perfect example for Session Variables.
At least I would set the selected items into Session Variables that are checked on every reload of the page.

Does this make sense, or should I go eat something too? Daren J. Lahey
Just another computer guy...
 
Ack I tried that and it works to a certain extent. I dislike sessions but here I think I may have to use em.

What I meant by a certain extent is that if the user changes a value it is overwritten when the next item is selected.

This is a online reservation thing.

when the user selectes items they are placed in the grid. The user can then specify how many of each he/she wants.

It's the how many thing that is being overwritten.

Gaaa..... I think it's time to go home maybe tomorow my brain will work.

Thanks Daren. later all. That'l do donkey, that'l do
[bravo] Mark
 
arrays...

hth Daren J. Lahey
Just another computer guy...
 
or you could persist the dataset to an xml file on the server when you create it, and delete the files on some event (session_end?,page_change?)

ds.writeXML(path)
ds.readXML(path)

it's really easy and simple to do this.

You do have to write a schema to go w/ it, though:

ds.writeXMLSchema(path)
ds.readXMLSchema(path)

**phwew**

;-)
paul
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top