Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
670
Header Template (With Image) disappears on postback (like when you sort a column)
posted

See attached example.

This very basically mimics what we are doing on our page.  The problem here is that, while the cell images (for the individual rows) are retained (due to the .databind / row initialize being fired each time on Page_Load), the Header image that was created when the template data column was created does not reappear after postback.

The header (image) template needs to be able to be created programmatically on Load as the information about that image, etc is stored in the DB.  How can I get the template data field's header template to re-appear on postback?

Is there a way to programmatically add the template to the grid (like you can with dataproviders) and have the grid retain those on postback and just "reference" the template like you do with the providers?

Sandbox.aspx.zip