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
70
How to prevent a column from staying left after fixing it
posted

Hi guys,

I enabled the fixed headers option for all columns in my grid.

When I fix a column, it comes to left side but when I unfix this same column, it always stays at left side. Do you know how to force this column to get its original location (before first fix)?

Thanks,

Regards,

Dorine

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Dorine,

    The grid does not store the original position of the column. It can't, in fact, because other columns might be moved around during the interim and so the original value might not be valid when the column is unfixed.

    If you want to try to store the original position yourself and restore it later, then you should be looking at the column.Header.VisiblePosition property. You can use the Before/AfterColPosChanged events to detect when a column's Fixed state changes.

Children