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
395
Visible position within a band group
posted

I am setting the VisiblePosition property of some grid columns from 0 to 5. These columns have been added to a multi level group. Columns 0 through 4 are on level 0, and 5 is on level 1. The order of the columns on level 0 is not obeying the order defined by the VisiblePosition property. How do I make the VisiblePosition work properly in a multi-level band group.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Alkali,

    Does it matter if you have two levels or not?

    My first guess is that this is probably caused by the order in which you are setting the VisiblePosition. You must set the VisiblePosition in order from 0 to 4. Otherwise, you run the risk that setting the position of one column will alter the position of another column whose position was already set.

    You probably need to set the Level on each column, first, also.

    All of this is assuming that you are are using Groups and Levels (RowLayoutStyle = None). If you are using GroupLayout style, then VisiblePosition is irrelevant and you have to use the RowLayoutColumnInfo on each column to establish it's position.

Children