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
Sorry Mike, my mistake, there was a problem in my code. Your solution works perfectly.
Thanks a lot for your help.
Hi Mike,
Thanks for your answer. So I stored original position thanks to the Before/AfterColPosChanged events, but is it possible to catch an event when a column is fixed and unfixed as the events Before/AfterRowFixedStateChanged? If not, do you have a workaround?
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.