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
175
WinGrid AllowColMoving property
posted

Is it possible ot have a column not allowed to be moved, but the rest of the columns are moveable?

Example

e.Layout.Override.AllowColMoving = Infragistics.Win.UltraWinGrid.AllowColMoving.Default;

e.Layout.Bands[0].Columns[0].Layout.Override.AllowColMoving =

Infragistics.Win.UltraWinGrid.AllowColMoving.NotAllowed;

 

When I use this code, no columns in the table are moveable.

If this is not possible, is there any other way to "lock" a column.

Parents
No Data
Reply
  • 469350
    Offline posted

    What you are describing doesn't really make sense. If you can move one column, then you could theoretically move that column to the left of the immovable column - which then moves the immovable column. So there's really no logical way to do this, unless you mean you want to lock a column all the way to the left and not allow any columns to be moved to the left of it.

    You might want to look into using Fixed Columns. You could also handle the BeforeColPosChanged event and cancel the change if the user tried to move a column to a position you don't want to allow.  

Children