CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 1999
    Posts
    35

    Msflexgrid.. anyone can explain this please...

    i tried to make some of my grid column disapear and i used 'msflexgrid.RowIsVisible(x) = TRUE' but i get an error message 'compiler error assignment to constant not permited' why is that ?



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Msflexgrid.. anyone can explain this please...

    if you check with the object browser you will find, that the RowIsVisible property is "readonly at runtime", meaning that you cannot assign a value to it at runtime, you can only query it's value.


  3. #3
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: Msflexgrid.. anyone can explain this please...

    As Lothar said, the '.RowIsVisible' property is a read-only property that tell's you if a row is visible - not whether you can hide columns (as stated in your post).

    There are only two ways of making columns 'invisible' in the FlexGrid:

    1. Make the '.ColWidth' of the column = 0 (users can still resize it though)

    2. Remove the column completely (move the column to the last column position, then decrement the '.cols' value of the flexgrid)

    Chris Eastwood

    CodeGuru - the website for developers
    http://codeguru.developer.com/vb

  4. #4
    Join Date
    Jul 1999
    Posts
    35

    Re: Msflexgrid.. anyone can explain this please...

    Oh.. that why.. thank.. i guess i misunderstand the help file...


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

Featured