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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GridViews and Nested GridViews : passing data

Status
Not open for further replies.

MystiqueOfLife

Programmer
Aug 19, 2006
11
CA
Hi,

Any assistance is appreciated.

Background:
I'm working with GridViews and nested GridViews in an Ajax application that brings a user through a data entry wizard and does not submit or store info in a Database.. the user can continue to go through the application multiple times.

Gridview Objects
- buyer (multiple entries)

- order (multiple entries)
>> nested buyer (multiple entries)


Process
- buyers are added to a gridview
- user continues through the wizard to complete order
- order is stored in gridview
- buyers for the order are stored in a nested gridview
- user repeats process (loops through the application adding new orders)
- no database store

What is the best way to store the data (DataTable in Cache, Session, XML, etc.) when the gridviews get regenerated (on 2, 3, 4th times the user loops through app)?


- Buyer GridView gets updated manually by user
- order gridview gets updated manually by user
>> nested buyer gridview gets populated on RowDataBound dynamically from the information in the buyers table

Problem:
- oOrder.DataBind();
- oOrder_RowDataBind event fires
- nested buyer gridview get updated with the information inside the current buyer gridview, overwritting previous entires
- if I filter out everything except the last record, all other records are blank

How would you retain the nested buyer gridview information for each record in the order griview when a new record is added / DataBind() occurs on the order gridview?

Thanks, any insight or suggestion is appreciated.

Cheers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top