Monday, May 13, 2013

Get parent controls values in the child gridview

write following code in child RowCommand :
----------------------------------------------------
GridView gv = (GridView)sender;
HiddenField hdbatch_name = (HiddenField)gv.Parent.FindControl("hbbatch");
HiddenField hdcourse_name = (HiddenField)gv.Parent.FindControl("hdcourse");

No comments:

Post a Comment