Click here to Skip to main content
16,005,149 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

Is is possible to reach an datagrid inside a itemrepeater from codebehind,

i want to do this in the codebehind
datagrid1.visible = false;
datagrid2.visible = true;

can anyone provide an answer

thanks!
Posted
Updated 4-Apr-11 23:35pm
v2
Comments
Toniyo Jackson 5-Apr-11 5:37am    
Use pre tag for code

1 solution

C#
protected void Repeater_ItemCreated(object sender, RepeaterItemEventArgs e)
{
   Gridview gv = (Gridview )e.Item.FindControl("Gridview1 ");
 gv1.visible = false;
}
 
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