[RESOLVED] Bold text in MSFlexGrid
Hello All,
I have an MSFlexGrid with several rows. What I cannot seem to get is for the first row, Row 0, to be bold and the other rows to be normal. I either get all or nothing bolded. Code tried:-
MSFlexGrid1.row = 0
MSFlexGrid1.Font.Bold = True
MSFlexGrid1.row = 1
MSFlexGrid1.Font.Bold = False
etc.
Tarablue
Re: Bold text in MSFlexGrid
There is CellFontBold property that you need to set.
Setting MSFlexGrid1.Font.Bold changes font type for the entire grid.
Re: Bold text in MSFlexGrid
Thank you RhinoBull, I will try that.
Does this mean I need to write this for every cell, although thinking about it as I type, I could write a Do/Until loop too cover all the cells. Yes that might just work. I'll let you know
Tarablue
Re: Bold text in MSFlexGrid
Do you want to bold certain cells or entire cells in the grid...if you want to do it for certain cells then you need to specify for each cell or you can use do/until loop
Re: Bold text in MSFlexGrid
You may not need a loop. The Flexgrid has a "repeat style" that affects a range of cells. For example, the following will bold all cells in column 3
Code:
With Me.MSFlexGrid1
.FillStyle = flexFillRepeat
.Row = .FixedRows
.Col = 2
.RowSel = .Rows - 1
.CellFontBold = True
.FillStyle = flexFillSingle
End With
Re: Bold text in MSFlexGrid
Hello brucevde,
That just might work for rows if I change the code around!
Thank You
Tarablue