Is it possible ot have a column not allowed to be moved, but the rest of the columns are moveable?
Example
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.
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.
It makes lots of sense to me. I have more than one Fixed column, and more than one non-fixed column. I want to keep the Fixed columns in a specific order on the left of the grid, while allowing the user to reorder the remaining columns. The "Fixed" property keeps the columns from scrolling, but it doesn't prevent the user from manually grabbing the fixed column's header and moving it to another location.
AlphaGuys said: It makes lots of sense to me. I have more than one Fixed column, and more than one non-fixed column. I want to keep the Fixed columns in a specific order on the left of the grid, while allowing the user to reorder the remaining columns. The "Fixed" property keeps the columns from scrolling, but it doesn't prevent the user from manually grabbing the fixed column's header and moving it to another location.
Exactly. Like in Excel you can lock X # of columns on the left/right to prevent them from moving but allow all other columns to be rearragned
The JSF infragistics package has support for this in WebGrid but I cannot find it for WinGrid
Hm, that's a good point. But for this to work, you would not only have to prevent the column itself from being moved, you would also have to somehow indicate that dropping any other column to the left of that column is also not allowed. I don't beleive there is any way to do this currently, except handling the BeforeColPosChanged. But of course that's not really ideal since it's not clear to the user that they can't drop the column there until after they release it.
You should Submit a feature request to Infragistic.
Do you know if this feature was ever requested or added? I have a similar column structure to what is described above--two groups of columns within which the user can reorder, but moving columns between groups is forbidden. I have it working, but there's no feedback during the column drag that the drop will be rejected. I'm using v9.1.
If my last post was confusing, scroll back to Mike's post on 5/2/2008.
As far as I know, this functionality has not been added to the grid and nothing has changed to make it any easier.