Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
Hi all, My problem is that I am making use of tab container in my website. I have taken a GridView which is binded in tab panel 1 of the container. I want to have the same GridView in the other two tabs too. Do I need to take two different GridViews for that? or can just one GridView solve the purpose?

Kindly help.

Regards,
Taresh
(soft Developer Beginner)
Posted
Updated 12-Mar-12 8:56am
v2
Comments
justinonday 12-Mar-12 8:40am    
Better to use two diff Grids..!
Nelek 12-Mar-12 14:57pm    
Edit: Some text corrections to make it more readable

Hi there..
Just do one thing.. Make your grid as WebUserControl and use this control to all the tab panel where ever it is required..

All the best..
 
Share this answer
 
Easiest approach to use Ajax Tookit Tab Containers and Tab Panels, Put GridView in the content template of TabPanel.

XML
<ajaxToolkit:TabContainer runat="server"
        OnClientActiveTabChanged="ClientFunction"
        Height="150px">
    <ajaxToolkit:TabPanel runat="server"
        HeaderText="Signature and Bio"
        <ContentTemplate>
           -- Grid View --
        </ContentTemplate>
    />
</ajaxToolkit:TabContainer>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900