Home > Net >  The GridView dynamic addition template column, ItemTemplate is normal, but can not add EditItemTempl
The GridView dynamic addition template column, ItemTemplate is normal, but can not add EditItemTempl

Time:10-20

TemplateField ztTemplateField=new TemplateField ();
ZtTemplateField. The HeaderText="show";
ZtTemplateField, ItemStyle HorizontalAlign=HorizontalAlign. Center;
ZtTemplateField. ItemTemplate=new GridViewCheckBoxBind (DataControlRowType DataRow, "xs", "CHKxs");
ZtTemplateField. EditItemTemplate=new GridViewCheckBoxBind (DataControlRowType DataRow, "xs", "editCHKxs");
GridView1. Columns. The Add (ztTemplateField);
GridView1. Columns. The Add (editfield);

GridViewCheckBoxBind writing class, run after the checkbox display is normal, but after click edit, checkbox, and will not display where is wrong? Thank you all!
  • Related