Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Need to freeze columns on the left

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Need to freeze columns on the left
Link Posted: 30-Aug-2006 07:27
Hi, does FlyGrid support such a feature?  A user would not be able to move a frozen column, even if column moving is enabled.

Additionally, as the user scrolls to the right, frozen columns would remain visible.

Thanks
Link Posted: 30-Aug-2006 22:13
Yes, FlyGrid supports this feature.
Please set flyGrid.Columns.LeftFixedColumns property to the number of fixed columns on the left side.
Link Posted: 31-Aug-2006 02:50
This feature is broken.

I set this property to 1.  Moving columns is allowed in the grid.

So, I can move the second column, before the first, and now it becomes the frozen column.

This is not what I want.  The first column should remain frozen, no matter what. You should not be allowed to move other columns in front of it, causing that column to become the frozen column.

I still want other columns that are not frozen to be allowed to move around.  But I also want the first column (or however many) to remain frozen on the left, regardless of what the user does with the rest.
Link Posted: 31-Aug-2006 03:30
To set column non-movable use Column.AllowMove = false
To disallow moving column from non-fixed area to fixed or vice versa use FlyGrid.ColumnMove event handler and return false in this handler.
Link Posted: 31-Aug-2006 03:36
Seems like handling the ColumnMove event in this way is a kluge.  No one who freezes a column on the left, would ever want to allow other columns to be moved in front of it, or have that column moved elsewhere. I honestly don't see anyone who would want to freeze columns without this - what would be the point?

Additionally, it is confusing to the user, that the UI allows them to move a column down in the list, but then presumably the move is undone, and the column moves back to where it was.

I still maintain that this feature is broken.  It only works half way.

Just my opinion.