Results 1 to 5 of 5

Thread: MSFlexGrig/MSHFlexGrig

  1. #1
    Guest

    Post

    I have a queston regarding MSFlexGrid/MSHFlexGrid and was wondering if anyone can help. I have populated a MSHFlexGrid with a recordset from a database.

    I have some code that sorts the grid based upon what column the user has clicked on (this is a read only grid). The problem is that there is a column that store dates in a mm/dd/yyyy format. So I created extra column that stores the date in yyyymmdd format. What I have done is, when the user clicks the date column I sort the grid based on the extra column (the yyyymmdd column).

    My question is...
    Is there a way to hide certain columns in in the MSHFlexGrid?

    I tried this
    MSHFlexGrid1.ColIsVisible(3) = True
    but got an error.

    Please help

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    MSFlexGrid1.ColWidth(Index) = 0

  3. #3
    Guest

    Post

    I tried this...
    MSHFlexGrid.ColWidth(3) = 0

    The problem I had with that the user can still expand the column.

  4. #4
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    hi

    sorry about bringing this thread up again,but me too facing the same kind of problem.

    I want to hide one of the columns of the Flexgrid - Did you find any soln for it?

    Does any one else knows it?

    thanks a lot.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    I think setting the column width to 0 is the only way. One method you could use to prevent people from permentaly resizing the column would be to set it back to 0 in the MouseUp event. They will resize it using the mouse, but as soon as they release the mouse it will go back to 0 again. Kloogy, yes...

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