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
635
Grid losing layout
posted

Hi,

Using v7.3 and got s problem whereby no matter what we do the grid displays the columns as they werewhen the datasource (hierarchical binding list)  was first bound on one ofthe bands. It looks ok in design view but as soone as we run it we get ALL columns getting shown again. WE had this problem initially under v7.1 where it was much worse but v7.3 seemed to have fixed it, however it started again on one of the grids after we changed soem of the properties on it (none of which should have made a difference). Is this a known problem? Also, where is the default layout for the grid held how is it possible for it to go back to a previous view even after changing it in design mode.

 

Regards

Jim

Parents
No Data
Reply
  • 435
    posted

    I've actually got a similar issue. I can reproduce this issue in my code depending on when the InitialiseComponent() method is called. If it is called in the constructor of my control, the grid renders just fine.

    However, if I move the InitialiseComponent to a method that gets called after the default constructor, the Grid does not correctly render the layout. The problem seems to be on the BandsSerializer method call:

    this.MyGrid.DisplayLayout.BandsSerializer.Add (ultraGridBand1);

    When this is called from during the Constructor, it correctly sets the columns in the Band up. However, when called later, the column count remains at zero. I assume that when the class loads, the Grid uses a default layout to display the data i.e. showing all columns etc..

Children