Click here to Skip to main content
15,914,074 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using two gridviews in seperate tabs of tabcontainer,but the prblm is only one gridview is showing either first or second..but not displaying two grids at atime what is my problem can any body help m pls,...thank u.........



MembershipUser user = System.Web.Security.Membership.GetUser();
                       grvNotifications1.DataSource = BusinessNotificationsManager.GetUserNotifications((Guid)user.ProviderUserKey);
                       grvNotifications1.DataBind();

                       grvBusinessInfo.DataSource = BusinessManager.GetBusinessInfos((Guid)user.ProviderUserKey);
                       grvBusinessInfo.DataBind();


this is my code!!!
Posted
Updated 22-Aug-11 0:48am
v2

Place both gridviews one below the other in the page and display them both.
Also, check your code to see if you have some visibility logic for either of these grids.
 
Share this answer
 
Comments
kishore1215 22-Aug-11 6:40am    
sorry not prblm with that
Dear Kishore,

You want to show both gridview together (without making invisible another gridivew) as I understood your question. For these you don't need to use tab container because Tabcontainer shows only one tab at the time refer: http://www.asp.net/ajaxlibrary/Tabs-Control.ashx[^]. you can use any one control from div/panel/table In instead of use tab.

Please mark as answer if I m right.

Regards,
Aman
 
Share this answer
 
v3
Comments
kishore1215 22-Aug-11 7:07am    
i need to show in two tabs two gridviews ,one is for business tab,and another one is notifications when i click on business it has to show business grid,and in notifications tab it has to show notifications grid..
Aman4.net 22-Aug-11 7:32am    
Ok, Please refer to mentioned link how to use Tab. If it does not work. Please provide your complete code.
sorry,there are many div tags are,those div tags are interrupting to show gridview..i find out solution for my problm thanks for your response u all..
 
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