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

MSHFlexgrid Formatstring

Status
Not open for further replies.

BasicBoy

Programmer
Feb 22, 2008
156
ZA
I have changed from an MSFlexgrid control to an MSHFlexgrid control - mainly to make column widths=0 without being able to select or resize them.
The problem is that MSH will not tolerate a fixed row when there is only one row in your grid - and so with only one row, it will not write the formatstring or give that row the fixedrow backcolor.
I need to have the grid with one row and that a fixed row, so that I can write the formatstring.
Is there any work around for this.

Thanks

 
You coud Try

With MSHFlexgrid
.Redraw = False
.FixedCols = 0
.FixedCols = 0
' modify column's headers
I = 0
.TextMatrix(0, I) = "LANDLORD": .ColWidth(I) = 3650
'etc

.row = 1
for i = 1 to .cols -1
select case i
case 1
.ColWidth(I) = 3650
case 2
.ColWidth(I) = 1000
case else
.ColWidth(I) = 0
end select

.fixedcols = Some number

.fixedrows = 1

.Redraw = True


end with
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top