or
<telerik:GridTemplateColumn HeaderText="Godkänn" ItemStyle-Width="50px" UniqueName="cChkbox"> <ItemTemplate> <fw:CustomCheckBox DatabaseID='<%# Eval("ID") %>' runat="server" OnCheckedChanged="onCheckedChanged" /> </ItemTemplate></telerik:GridTemplateColumn>protected void btnAcceptHours_Click(object sender, EventArgs e) { List<string> AcceptHours = new List<string>(); foreach (GridDataItem item in rgAvvaktandeTim.Items) { foreach (Control c in item.Controls) { foreach (Control d in c.Controls) { if (d is CustomControls.CustomCheckBox) { if ((d as CustomControls.CustomCheckBox).Checked == true) { AcceptHours.Add((d as CustomControls.CustomCheckBox).DatabaseID); goto ContinueOuterIteration; } } } } ContinueOuterIteration: continue; }var grid = $find("<%= rgMain.ClientID %>");