Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide a column in MSFlexGrid

Status
Not open for further replies.

RangerFan

MIS
May 4, 2000
61
US
How can I hide a column in MSFlexGrid at runtime? Any help would be appreciated.
 
What we do is set the width to 0 and if it's a column we want to hide then we set the height to 0.

Hope it helps....
 
In the DBGrid... there is .Columns(5).Visible=False

Craig

"I feel sorry for people who don't drink. When they wake up in the morning, that's as good as they're going to feel all day."
~Frank Sinatra
 
Hi TomKane:

Do you have an example of the code? That would help a lot.
Thanks.
 
TomKane's approach is a valid one, and an example of that approach would be as follows:

grdGrid.ColWidth(ColNumber) = 0
grdGrid.RowHeight(RowNumber) = 0

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
TomKane:

Thanks, that worked fine. I appreciate the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top