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
630
InitializeLayout triggered early when only an unbound column has been created against the band.
posted

I cannot seem to reproduce this issue within a smaller project, but I have a Top docked panel in a user control, and a panel below it containing a grid. If I set the Visible state of the Top docked panel to True in the designer then the InitializeLayout event is triggered before the columns have all been initialized. However, if this panel is set to False, then the InitializeLayout event is NOT triggered until the DisplayLayout property is first accessed within code (in my case, within the constructor, but after the default InitializeComponent call. If I change the designer to have call to PerformLayout on the panel containing the grid, before the line that seems to trigger the InitializeLayout event, then this works but is not a permanent solution.

I wish I could re-create this error, but I am hoping just looking at what triggers the InitializeLayout event would be enough to know...?

It would be good if this error could encourage a "columns changed" event? Is it worth putting in a request?