Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a ChildGv within ParentGv i want to know how can i detect controls within ChildGv and how can i mention the code to be executed on its event?
Posted
Comments
pryashrma 23-Mar-13 7:35am    
please provide more info

1 solution

Test the codes below, if it works....
C#
for (int j = 0; j < gv_prod.Rows.Count; j++)
{
string id = ((CheckBox)gv_prod.Rows[j].Cells[0].FindControl("Chk")).Text;    
string text = ((TextBox)gv_prod.Rows[j].FindControl("txtid")).Text;
string option = ((DropDownList)gv_prod.Rows[j].FindControl("ddlbrnd")).Text;
FileUpload file = (FileUpload)gv_prod.Rows[j].FindControl("fu");
}
 
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