Hi,
i am using a row template, user control. If i have a post back on the screen my row template does not show. If no post back on the screen, row template shows and works great.
any ideas.....
thank you,
Without testing
If Not IsPostBack Then
UltraWebGrid1.Bands(0).RowEditTemplate = template
You load the template only on the initial load of the page. I don't think the template gets put in viewstate (could be wrong) but you might want to ensure that the RowEditTemplate isn't null during the postback.
i put above two lines of code before Page.IsPostback; in other words template gets assigned on every postback, but i had the same result.
i tried another thing, which i need little explanation; i put Me.Databind out side the page.ispostback event, then i see the row template even after the page postback!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
why do i have to bind the controls, or even grid on every post back?