Hi Venkat,
Thanks for using Syncfusion Products.
We can achieve your requirements by using the following
lines in CheckedChanged event as :
CheckBox
checkbox = (CheckBox)sender;
and in RowDataBound event we can achieve using RowDataBoundEventArgs
as :
GridRow
gr = e.Row;
CheckBox
chk = (CheckBox)gr.Cells[0].Controls[0].FindControl("cbRowBtnTemplate");
Please let
us know if you have any concerns.
Regards,
Gowri S.
Hi Owen Waldrep
Thanks for using Syncfusion products.
Your requirement of finding and accessing control(checkbox) inside RowBtnTemplate in each grid rows can be achieved by iterating through the rows of the Grid. Please refer to the code snippet below to achieve this.
[CodeBehind]
protected void Button1_Click(object sender, EventArgs e)
{
foreach (TableRow row in this.ggc1.TopLevelTable.Rows) //Loop through each row of a grid
{
GridRow gvr = row as GridRow;
if (gvr != null)
{
foreach (GridCell gridCell in gvr.Cells)
{
if (gridCell is GridCellTemplated) // If grid cell is templated
{
CheckBox check = (CheckBox)gridCell.FindControl("cbRowBtnTemplate"); //find checkbox control inside templated grid cells
if (check != null)
{
if (check.Checked == true)
{
//process here
}
}
}
}
}
}
}
Please refer to the below link to download the sample application.
Please let me know if you have any concern.
Regards,
Bala Murugan A.S