I have a 18 column grid. What I want to do is always freeze the first 3 coulmns when the users perform a horizontal scroll on the grid.
Is this possible? I am new to MSFlexGrid so any sample code or direction on this matter is greatly appreciated.
Printable View
I have a 18 column grid. What I want to do is always freeze the first 3 coulmns when the users perform a horizontal scroll on the grid.
Is this possible? I am new to MSFlexGrid so any sample code or direction on this matter is greatly appreciated.
After grid is loaded set FixedCols to whatever number you wish but it has to be at least one less than total number of columns (Cols property).
btw, Welcome to Forums! :wave:Code:MSFlexGrid1.Cols = 5
MSFlexGrid1.FixedCols = 3
MSFlexGrid1.Cols = 5
Is this the total columns of my grid?
MSFlexGrid1.FixedCols = 3
Is this the total columns that I want to freeze?
How can I specify what column(s) to freeze (i.e. column 1, 3, 5 and so on)
Thank you very much for your quick response.
- MSFlexGrid1.Cols = 5
- Is this the total columns of my grid?
YES
- MSFlexGrid1.FixedCols = 3
- Is this the total columns that I want to freeze?
YES
- How can I specify what column(s) to freeze (i.e. column 1, 3, 5 and so on)
FixedCols can only be defined consecutively beginning with the first (left most) - so it could only be 1,2,3 and not 1,3,5