From: chuckd777 on
Hello,

I am trying to hide a column in a MSHFlexgrid

When i try:

MSHFlexGrid1.ColIsVisible(4) = False

I get a compile error:
"Assignment to constant not permitted"


I do not want to set the column's width to 0 because, i have resizable
columns.

Any help would be greatly appreciated,

Thanks!

From: Ken Halter on
"chuckd777" <chuckd777(a)gmail.com> wrote in message
news:1138806222.347064.115120(a)f14g2000cwb.googlegroups.com...
> Hello,
>
> I am trying to hide a column in a MSHFlexgrid
>
> When i try:
>
> MSHFlexGrid1.ColIsVisible(4) = False
>
> I get a compile error:
> "Assignment to constant not permitted"
>
>
> I do not want to set the column's width to 0 because, i have resizable
> columns.
>
> Any help would be greatly appreciated,
>
> Thanks!

About all you can do is set the width = 0 and use code similar to this
(below) to detect and prevent the user from resizing the column.

Detect FlexGrid Column Resize
http://www.vbsight.com/Code.htm

ColIsVisible is more of a function than a property. It tells you if the
column is visible but doesn't allow you to manipulate the visibility.

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Freeware 4 color Gradient Frame? http://www.vbsight.com/GradFrameCTL.htm


 | 
Pages: 1
Prev: Run-time error 3706
Next: datacombo