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!

Column headers in MSHFlexgrid

Status
Not open for further replies.

RubenV

Programmer
Feb 17, 2005
34
BE
Hi everyone,

I'm trying to set the columnheaders for my Microsoft Hierachial Flexgrid control in VB6.

This is the code but I don't get any column headers:
With mshfCompanies
.ColWidth(7) = 0
.ColWidth(8) = 0
.ColHeader(0) = "Company"
.ColHeader(1) = "Address"
.ColHeader(2) = "City"
.ColHeader(3) = "Zip Code"
.ColHeader(4) = "State/Province"
.ColHeader(5) = "Country"
.Row = 1
End With

Can someone help me with setting the column headers?
 
The ColHeader property is a "switch" that indicates whether column headers should be displayed for a particular band in the grid, denoted by the index. To put text in the column headers, here is what I have done:

With MSHFlexGrid1
.Row = 0
.Col = 1
.Text = "Col 1"

.Col = 2
.Text = "Col 2"
End With



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
yeah ok, that does the trick.

Didn't think it was that easy :p

Thanks for your reply mate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top