How can I set foreground color to a row in a datagrid? I need to set colors to certain rows when a condition is met.
Thanks in advance for your help.
Printable View
How can I set foreground color to a row in a datagrid? I need to set colors to certain rows when a condition is met.
Thanks in advance for your help.
That is how you can change color in msflexgrid
Private Sub MSFlexGrid1_Entercell()
MSFlexGrid1.CellBackColor = vbRed
End Sub
Private Sub MSFlexGrid1_Leavecell()
MSFlexGrid1.CellBackColor = vbwhite
End Sub
Iouri Boutchkine
[email protected]
Thanks Iouri,
How about for a datagrid type grid?
Thanks again.
I did not try. Check if DBGrid has such properies.
Iouri Boutchkine
[email protected]