Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Pass Datagrid

Posted on 2003-11-19
1
220 Views
Last Modified: 2010-04-16
Hey is there a quick and easy way to just pass a Datagrid or DataAdapter between pages?
I would prefer not to pass it using the ?= in the http.
I would also prefer not to use session variables.
Anyway to just pass the datagrid once between 2 pages?
0
Comment
Question by:jj819430
1 Comment
 
LVL 4

Accepted Solution

by:
astankovic earned 500 total points
ID: 9780315
Why do you need to pass DataGrid between pages? I think its not the best design approach. It would be better to just re bind the DataGrid from the data source on both pages. Or better yet, cache the data when the data is accessed on the first page and then just populate the DataGrid on the second page from that cache.

That way you can use the data for other controls too, not just that one DataGrid.

Alex
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question