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
1440
How to check if the column is in the view or not?
posted

Hi,

My grid has the first column group fixed, and our users has their customized views (setting columns to visible or not) saved in database.  The problem is that when user has lots of columns visible in the first column group, they can't horizontally scroll to the second column group because the view is all occupied by the first column group and it is a fixed group.

Is there a way I can determine if the last visible column in the group is not visible in the view?  In that case, I can manually remove the fixed property in InitializeLayout event.

Regards,

Jason

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Jason,

    I don't think there is any really easy way to do this.

    But it probably can be done by getting the Width property on the group and comparing that to the Width of the grid.

    The tricky part is that you will have to account for the horizontal scroll bar (if it is there) and perhaps the grid's borders.

Reply Children
No Data