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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSHFlexGrid

Status
Not open for further replies.

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
 
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

 
i got it , thanks a lot.
but here is another problem:if i set the column resizeable, the user still can see the column.
 
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 ;-))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top