A small summary of ItemTemplate and EditItemTemplate on WebForm

xiaoxiao2021-03-06  68

These two days, found a few similar posts were worried about this problem, just like this to ride the business today, there is no thing, itching, decided to put this problem well. First, describe how the editor is generated. Note that the controls inside the EditItemTemplate inside the template column are not generated before you click Edit. When you click Edit, set this.DataGrid1.edititeMindex = ......, then resize Grid, page postback, according to the II edited according to the I specified. The controls in the editing template corresponding to the corresponding first iii are generated. And this time, the control in the ItemTemplate of this row is not generated. This we can make a test.

Runat = "server" autogeneratecolumns = "false" width = "264px">