Results 1 to 6 of 6

Thread: MSFlexGrid Column ID

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    MSFlexGrid Column ID

    Is there an MSFlexgrid column identifier that cannot be changed

    I need to find a column identifier that I can use to test the columns position in the grid regardless of the column title so I can be sure that I have the correct column in the correct position.

  2. #2
    PowerPoster
    Join Date
    Oct 2008
    Location
    Midwest Region, United States
    Posts
    3,574

    Re: MSFlexGrid Column ID

    What would cause the column's position to move?

    Throw a little more detail at us, please!

    Bryce

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    Re: MSFlexGrid Column ID

    Quote Originally Posted by vbfbryce View Post
    What would cause the column's position to move?
    This would cause the column to move
    Code:
    MSFlexGrid1.ColPosition(40) = 7
    The point being I want the column to move for display perposes but I need it to move back if the grid is being filled again.

    I therefore need a test to use before I fill the grid so I know whether to move the column back or not before I fill the grid again.
    Last edited by JohnSavage; Oct 6th, 2009 at 07:14 AM.

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

    Re: MSFlexGrid Column ID

    You can write old/new column position value to a variable or (if you need to move more than one column) 2D array or array of UDT.
    I would use array and when restoring original positions read it from last element up.

    edit: used "index" instead of "position"....

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    May 2006
    Posts
    612

    Re: MSFlexGrid Column ID

    Can you explain a little more about the column index usage please

  6. #6

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