Hi There,
I'm trying to add some extra GridTemplateColumns on my
Page_Init using my own custom template class. When the page loads the first time, everything is fine and dandy. Yet after a postback from a filter or paging command, things go horribly wrong. More specifically, the extra columns that I i'm adding on Page_Init remain, but for every postback, an extra set of blank columns are added to the grid. My initial thought was to just wrap my Page_Init inside a
if(!isPostBack) statement, but then no extra columns show at all after a postback. Please help!
Here's my Page_Init:
... and my custom template looks like this.
Also, my NeedDataSource uses the same datasource that I bind to on my Page_Load: