General information
Category:
Forms & Form designer
Hi Randy,
You can use DYNAMICBACKCOLOR and DYNAMICFORECOLOR.
Use this code at the Init event of your form:
Public MyRecNo
Thisform.MyGrid.SetAll("DynamicBackColor", "IIF(RECNO( )=MyRecNo, RGB(0,0,128), RGB(255,255,255))", "Column") && Painting backcolor: Blue
Thisform.MyGrid.SetAll("DynamicForeColor", "IIF(RECNO( )=MyRecNo, RGB(255, 255, 255), RGB(0,0,0))", "Column") && Painting letters: white
After doing an Append Blank, add:
MyRecNo = RecNo()
Thisform.Refresh()
Add this, also to the AfterRowColChange event of your Grid.
That should make what you want.
Cheers,
Ricardo
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only