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 ?
Printable View
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 ?
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.
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
Oh.. that why.. thank.. i guess i misunderstand the help file...