Hi,
I just want to find the dynamically created Check box controls from the EditFormTemplate section. The controls are created dynamically in the EditFormTemplate section as the code given below; So i need to find the same controls under Update/Insert commapnd section to mke me to do the data manipulation work.
TableRow row = new TableRow();
TableCell cell = new TableCell();
cC.Width = Unit.Percentage(20);
cC.HorizontalAlign = HorizontalAlign.Left;
HtmlInputCheckBox e0 = new HtmlInputCheckBox();
e0.ID = "cbx-" + x.ToString();
e0.Value = dR["Abbreviation"].ToString();
e0.Checked = true;
cell.Controls.Add(e0);
row.Controls.Add(cC);
myTable.Controls.Add(row);
}
The above is the code i used to create htmnl check boxes dynamically in ItemDataBound event of the grid
-Thanks
I just want to find the dynamically created Check box controls from the EditFormTemplate section. The controls are created dynamically in the EditFormTemplate section as the code given below; So i need to find the same controls under Update/Insert commapnd section to mke me to do the data manipulation work.
if ((e.Item is GridEditFormItem) && (e.Item.IsInEditMode))
{
TableRow row = new TableRow();
TableCell cell = new TableCell();
cC.Width = Unit.Percentage(20);
cC.HorizontalAlign = HorizontalAlign.Left;
HtmlInputCheckBox e0 = new HtmlInputCheckBox();
e0.ID = "cbx-" + x.ToString();
e0.Value = dR["Abbreviation"].ToString();
e0.Checked = true;
cell.Controls.Add(e0);
row.Controls.Add(cC);
myTable.Controls.Add(row);
}
The above is the code i used to create htmnl check boxes dynamically in ItemDataBound event of the grid
-Thanks