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.
As far as I know, this functionality has not been added to the grid and nothing has changed to make it any easier.
If my last post was confusing, scroll back to Mike's post on 5/2/2008.
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.
Hi Steve,
Oh, great. I hadn't had a chance to whip up a sample, yet. :)
Mike,
I was able to get this working. I found another post with example code, so you do not need to provide code in case you were going to.
Thanks,
Steve