Dear Team,
How to Highlight the First row(only) of the FlexGrid with ForeColur and
Backcolour....?
Printable View
Dear Team,
How to Highlight the First row(only) of the FlexGrid with ForeColur and
Backcolour....?
if flexgrid.row = 0 then
for x = 0 the flexgrid1.col -1
flexgrid1.col = x
flexgrid1.forecolor = color
flexgrid1.backcolor = color
next x
without looping:VB Code:
With MSFlexGrid1 .Redraw = False .FillStyle = flexFillRepeat .Row = .FixedRows .Col = .FixedCols .ColSel = .Cols - 1 .CellForeColor = vbRed .CellBackColor = vbBlue .Col = 0: .Row = 0 .FillStyle = flexFillSingle .Redraw = True End With
Dear Bush,
It leaves the first column without Highlighting.How to highlight the second row.And I need To Bold the First Row Contents.Pls help :wave:
you want to change the fixed column too?
if so, try changing it toVB Code:
.Col = 0
I want to Highlight the second Row Fully and Change the Font Style as bold for the First Row.
No one
VB Code:
With MSFlexGrid1 'Bold 1st row .FillStyle = flexFillRepeat .Row = 0 .Col = 0 .RowSel = .Row .ColSel = .Cols - 1 .CellFontBold = True .FillStyle = flexFillSingle 'Hightlight 2nd row .Row = 1 .Col = 0 .RowSel = 1 .ColSel = .Cols - 1 End With
it is not displaying the grid row itself