473,320 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Save state and restore state of ASPxGrid Accross pages

I am using C# for codebehind and ASP.Net for page code. I am using a
databound ASPxGrid on a page that is databound in the codebehind. I
have a single LinkButton on this page. When I click this link button
I:
1. Send the ASPxGrid object to the Session["Grid"] variable
2. Send the the datasource to the Session["GridDataSet"] variable.
3. Redirect the user to the GridReport page

The GridReport page has a bare-bones instance of the ASPxGrid in the
page and the codebehind and a global DataSet object in the codebehind.
The purpose of this page is to attach a dataset to an ASPxGrid and
allow the grid to take the same look as the grid stored in the Session
variable.

The GridReport page:
1. Takes the Session["Grid"] variable and assigns it to the ASPxGrid
instance.
2. Takes the Session["GridDataSet"] variable and assigns it to the
global DataSet object.
The page loads OK, but the Grid control does not render any of the
rows. Is there a step that I am missing?

Any help will be appreciated,
-James
Nov 15 '05 #1
1 2071
Something that I forget sometimes is to Bind() the datasource to the grid.
I'll assign the datasource of the grid, but forget to call the Bind()
function.

-Darrin
"James Wansley" <ja**********@yahoo.com> wrote in message
news:61**************************@posting.google.c om...
I am using C# for codebehind and ASP.Net for page code. I am using a
databound ASPxGrid on a page that is databound in the codebehind. I
have a single LinkButton on this page. When I click this link button
I:
1. Send the ASPxGrid object to the Session["Grid"] variable
2. Send the the datasource to the Session["GridDataSet"] variable.
3. Redirect the user to the GridReport page

The GridReport page has a bare-bones instance of the ASPxGrid in the
page and the codebehind and a global DataSet object in the codebehind.
The purpose of this page is to attach a dataset to an ASPxGrid and
allow the grid to take the same look as the grid stored in the Session
variable.

The GridReport page:
1. Takes the Session["Grid"] variable and assigns it to the ASPxGrid
instance.
2. Takes the Session["GridDataSet"] variable and assigns it to the
global DataSet object.
The page loads OK, but the Grid control does not render any of the
rows. Is there a step that I am missing?

Any help will be appreciated,
-James

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

236
by: Andrew Rawnsley | last post by:
Anyone out there using beta 2 in production situations? Comments on stability? I am rolling out a project in the next 4 weeks, and really don't want to go though an upgrade soon after its released...
4
by: Knokmans | last post by:
Hi, All of this is still a test envinonment, but has to go on production.... I restore a database a database the follwing way db2 restore db <database> from <directory. taken at <timestamp>...
4
by: McGeeky | last post by:
I am implementing a series of sequential web pages, a wizard, whereby the user can step back to a previous page. I want to restore the state of those pages if the user navigates back to them. Only...
3
by: Branco Medeiros | last post by:
Dear (and mighty) all: I backed up a database (SQL server 7.0) and tried to restore it on another system (SQL Server 2000). This is not the first time I'm doing this and never had a problem...
1
by: Irene | last post by:
Hello all! I'm creating a web site in ASP.NET (VB.NET). One of the requirements was to allow users to create orders going through several steps. A must have is to have an option to save the work...
0
by: soft4raju | last post by:
How can i import devexpress.aspxgrid.dll file in to my web application. deveexpress.aspxgrid.dll file is a third party tool. cheers, raju
0
by: frenkMan | last post by:
Hi! I'm using the ASPxGrid component and I have a problem with it. I'm writing a simple web application. I would like to fill the ASPxGrid with some records from the database when a button is...
14
by: fdu.xiaojf | last post by:
Hi, I have a program which will continue to run for several days. When it is running, I can't do anything except waiting because it takes over most of the CUP time. Is it possible that the...
7
by: newscorrespondent | last post by:
I want to save the state of a splitcontainer when an application ends. I also save the form state. The SplitContainer does not seem to have a well defined place to put intiialization and...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.