Results 1 to 4 of 4

Thread: Freezing columns in MSFlexGrid

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2007
    Location
    CA
    Posts
    17

    Freezing columns in MSFlexGrid

    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.

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Freezing columns in MSFlexGrid

    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).
    Code:
    MSFlexGrid1.Cols = 5
    MSFlexGrid1.FixedCols = 3
    btw, Welcome to Forums!

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2007
    Location
    CA
    Posts
    17

    Re: Freezing columns in MSFlexGrid

    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.

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Freezing columns in MSFlexGrid

    - 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width