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
325
BandsSerializer
posted

I am creating a new band and using Grid.DisplayLayout.BandsSerializer.Add(band) to add the band to the grid.  When I try to access Bands[0].Columns[0], the columns are not yet created.  When do the columns get created?  Is there any method I can call to create them?

 

Thanks

  • 469350
    Verified Answer
    Offline posted

    Hi,

        The BandSerializer is intended for internal use by the grid as part of it's Serialization/Deserialization. You should never use this class.

        You cannot add bands to the grid. The grid's bands are determined by the data source of the grid.  

        The grid must have a data source in order to function. So if you want to use the grid and just set up your data structure at run-time without any database, I recommend using the UltraDataSource as your grid's DataSource. You can add the bands and columns you want to the UltraDataSource and bind it to the grid.