Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Pass Datagrid

Posted on 2003-11-19
1
Medium Priority
?
225 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
[X]
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
1 Comment
 
LVL 4

Accepted Solution

by:
astankovic earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

647 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