Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use a GRID for display and select only - no editi
Message
From
31/05/2000 15:08:39
 
 
To
04/05/2000 15:27:54
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00363004
Message ID:
00375025
Views:
20
>THIS.SetAll("DynamicBackColor",;
"IIF(MOD(RECNO( ), 2)=0,RGB(255,255,0),RGB(255,255,255))","Column")

That works great for toggling colors in a grid if the table is in physical record order, but if the table is indexed prior to instantiating the grid, the results are quite cumbersome

Heres my work around (this.afterrowcolchange) for highlighting the active row in an indexed table

if thisform.pnCurRecord <> recno('tablename')
this.Setall("DynamicBackColor", ;
"IIF(recno('tablename')<>(thisform.pnCurRecord),RGB(255,255,255),RGB(0,255,255))","Column")
thisform.pnCurRecord = recno('tablename')
endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform