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
165
Row template doesnot show after any post back on screen
posted

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,

Parents
No Data
Reply
  • 21382
    posted

    Without testing

    If Not IsPostBack Then

    ' Create the template and add to it.Dim template As ITemplatetemplate = Page.LoadTemplate("rowtemplate.ascx")

    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.

     

     

Children