Jan 26, 2001 #1 jimgao Programmer Nov 29, 2000 34 CA hi, i got a big question and wasted my hours. if some one know how to hide or delete some columns of MSHFlexGrid? thanks
hi, i got a big question and wasted my hours. if some one know how to hide or delete some columns of MSHFlexGrid? thanks
Jan 26, 2001 #2 bzac Programmer Dec 20, 2000 55 US I read somewhere in this forum that to hide a grid column:- put col. width to zero; you can search this forum for details With mshflexgrid1 .Redraw = False ' place the columns in the right order .ColData(0) = 0 .ColData(1) = 1 .ColData(2) = 2 ' modify column's headers .TextMatrix(0, 0) = "NAME " .TextMatrix(0, 1) = "TITLE" .TextMatrix(0, 2) = "RANK" ' set grid's column widths .ColWidth(0) = 2500 .ColWidth(1) = 2500 :::::::::::: .Redraw = True End With Upvote 0 Downvote
I read somewhere in this forum that to hide a grid column:- put col. width to zero; you can search this forum for details With mshflexgrid1 .Redraw = False ' place the columns in the right order .ColData(0) = 0 .ColData(1) = 1 .ColData(2) = 2 ' modify column's headers .TextMatrix(0, 0) = "NAME " .TextMatrix(0, 1) = "TITLE" .TextMatrix(0, 2) = "RANK" ' set grid's column widths .ColWidth(0) = 2500 .ColWidth(1) = 2500 :::::::::::: .Redraw = True End With
Jan 27, 2001 Thread starter #3 jimgao Programmer Nov 29, 2000 34 CA i got it , thanks a lot. but here is another problem:if i set the column resizeable, the user still can see the column. Upvote 0 Downvote
i got it , thanks a lot. but here is another problem:if i set the column resizeable, the user still can see the column.
Jan 27, 2001 #4 Guest_imported New member Jan 1, 1970 0 I have the same problem, but if the grid is bounded, it´s not possible to resize the cols in the second band? Please help me THX ;-)) Upvote 0 Downvote
I have the same problem, but if the grid is bounded, it´s not possible to resize the cols in the second band? Please help me THX ;-))