Solved

Using asp:TabPanel

Posted on 2010-09-21
3
344 Views
Last Modified: 2013-11-07
I'm using a tab panel to display the same grid, just with different data, depending on which tab is selected.  E.G., I have a tab for New Records, Pending Records, and Active Records.  My datagrid is quite complex, so I'd like to write it once, then just change my SelectCommand dependent on which tab is selected.

How do I do this?  The way I'm doing it, I use three separate grids, one withing each TabPanel.  Thanks -

Justin
0
Comment
Question by:JT_SIRO
3 Comments
 
LVL 1

Accepted Solution

by:
mrbvh earned 125 total points
ID: 33732332
you could create one grid and keep a reference in your global form. If your code is triggered to change the tab page, you can change the parent object of your grid to the new selected tab page. that way you can change the datasource or something else, but the same grid is used on every tab page...

Hope this infomration is useful to you!

Regards
Ben
0
 
LVL 6

Assisted Solution

by:thaytu888888
thaytu888888 earned 125 total points
ID: 33732418
- On ActiveTabChanged, change SelectCommand dependent on which tab is selected, and move the grid to the selected tab, code example: tabNewRecords.Controls.Add(gridRecord);
- Hope this help!
0
 

Author Closing Comment

by:JT_SIRO
ID: 33852809
good solutions
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now