Click here to Skip to main content
15,891,841 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi frens,


I m building hierarchial grid using telerik.... and im using check box inside the d grid so that the user can select the check box and delete it.... the problem im facing is tat how to get the check box ID of the inner grid( child grid) in code behind ...Any Suggestions frens ??..


thanks in advance
Darshan
Posted

1 solution

C#
public static T FindControl<T>(this Control parent, string controlName) where T: Control
    {     T found = parent.FindControl(controlName) as T;
    if (found != null)
    return found;
    foreach(Control childControl in parent.Controls)
{
    found = childControl.FindControl<T>(controlName) as T;
    if (found != null)
    break;
}
return found;
}



refered from http://stackoverflow.com/questions/1167682/gridview-accessing-child-gridview-checkbox
 
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