repaint all row in msflexgrid

User avatar
sal21
PlatinumLounger
Posts: 4334
Joined: 26 Apr 2010, 17:36

repaint all row in msflexgrid

Post by sal21 »

check if my code is correct, naturally other way is welcome:

Code: Select all


...
With msflexgrid
 'CLEAR ROW
        .Row = 1
        .RowSel = .Rows - 1
        .Col = 1
        .ColSel = .Cols - 1
        .FillStyle = flexFillRepeat
        .CellBackColor = vbWhite
        'CLEAR ROW
        end with
 ...
in effect i use other code to fill a cell with a color.

and then i need to repaint with the default color (white) the grid such as a clear...

User avatar
SpeakEasy
4StarLounger
Posts: 536
Joined: 27 Jun 2021, 10:46

Re: repaint all row in msflexgrid

Post by SpeakEasy »

That should work. Don't know of a faster or better method