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
1705
When can I actually access the columns at runtime?
posted

I have a grid that is in an UnltraExpandableGroupBox.  When my form loads, the group box is in the collapsed state.  I would like to be able to change column headings runtime for the columns that I set up with the designer.  It seems, though, that the columns aren't actually added to the grid until it is made visibile, i.e. when the group box is un-collapsed. 

What can I do in order to dynamically change the column headings when the form is loading?

Parents
  • 69832
    Offline posted

    Generally speaking you do this in the InitializeLayout event. I can't imagine why this would be any different when the grid is hidden, since the event fires when the data source is set.

Reply Children