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
440
InitializeLayout was not fired.
posted

Hi,

I set DataTable as DataSource to UltraGrid. I add new columns and rows into DataTable,  After that I set this DataTable as DataSource to UltraGrid  again. InitializeLayout was not fired. I need to fire   InitializeLayout in this case. How I make It?

Thanks.

Parents
No Data
Reply
  • 875
    Offline posted

    I had the same problem I think and found this post. In case this happens to help somebody else out, I was setting the UltraGrid Datasource directly to a DataSet. Once I changed this to bind with a BindingSource, InitializeLayout then started firing:

    VB.Net:

    .DataSource = Nothing
    .DataSource = New BindingSource(myDataset, String.Empty)

Children
No Data