I cannot reproduce the issue at my end. Creating columns in the Page_Load
event handler does not work for template columns. For the controls inside a template to persist their ViewState
, the grid must be generated completely in the code-behind using the Page_Init
event and check whether the issue still persists. Check the following help documentation which explains more about this.