May 14, 2003 #1 RangerFan MIS May 4, 2000 61 US How can I hide a column in MSFlexGrid at runtime? Any help would be appreciated.
May 14, 2003 #2 TomKane Programmer Jul 24, 2001 1,018 AU 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.... Upvote 0 Downvote
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....
May 14, 2003 #3 CasperTFG Programmer Nov 15, 2001 1,210 US 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 Upvote 0 Downvote
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
May 14, 2003 Thread starter #4 RangerFan MIS May 4, 2000 61 US Hi TomKane: Do you have an example of the code? That would help a lot. Thanks. Upvote 0 Downvote
May 14, 2003 #5 CajunCenturion Programmer Mar 4, 2002 11,381 US 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 Upvote 0 Downvote
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
May 14, 2003 Thread starter #6 RangerFan MIS May 4, 2000 61 US TomKane: Thanks, that worked fine. I appreciate the help. Upvote 0 Downvote
May 14, 2003 Thread starter #7 RangerFan MIS May 4, 2000 61 US Thank you Cajun Centurion, very much appreciated. Upvote 0 Downvote