Prev: Run-time error 3706
Next: datacombo
From: chuckd777 on 1 Feb 2006 10:03 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 1 Feb 2006 10:09 "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 |