Hi, I have three frozen column that are next to each other. I'm able to move their position within the frozen columns ie, if column 1,2 and 3 are frozen and 4,5,6 are not frozen, i'm able to swap positions between 1,2 and 3 but not between any of the non frozen columns and frozen columns. Please advice. Thanks in advance.
Hello,
Pinning the columns causes them to be to the left of all non pinned columns. What behavior are you looking for when you move them between unpinned columns? Should they still be pinned?
Alan
Actually i meant there are three frozen columns and i'm able to move within those three.
But what i want is that, i dont want the frozen columns to be moved at all, not even within
the frozen columns. Please help.
There are a lot of different ways in which the positions of the fixed columns could change. The user could drag a fixed column to a new position. Or the user could drag an unfixed column to the left of a fixed header.
So if you want to prevent the user from movind the columns at all, you would have to set AllowColMoving on the Override to NotAllowed.
If you need finer control than that, then you would have to use the BeforeColPosChanged event and examine the new column headers (e.ColumnHeaders) and then cancel the event if there's something in there that you do not want to allow. This will not stop them from beginning a drag operation, but it will prevent the drop.