Solved

Using asp:TabPanel

Posted on 2010-09-21
3
342 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
creating a flowchart from an algorithm 5 19
Paging GridView 7 32
Set cookies HttpOnly and Secure 4 51
cs.Designer Issue(2) 2 19
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

707 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

10 Experts available now in Live!

Get 1:1 Help Now