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
335
Why my UltraGridRowEditTemplate won't open after updating grid DataSource property
posted

hi,

I have a WinGrid in my app and an UltraGridRowEditTemplate which works fine if I only assign a DataTable to the grid DataSource once.     If I do myGrid.DataSource = myDataTable more than once, the RowEditTemplate will not open.

please help

thanks in advance

Parents
No Data
Reply
  • 37774
    Suggested Answer
    posted

    A guess is that by reassigning the datasource to a different source, you're blowing away the properties on the layout (though if it's the same source not sure what's causing it).  You could try handling the InitializeLayout event of the grid and set the template in there, i.e.

    e.Layout.Bands[0].RowEditTemplate = this.ultraGridRowEditTemplate1;

    -Matt

Children