Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change font bold to .t. in grid rows
Message
From
13/07/2004 05:38:44
 
 
To
13/07/2004 04:39:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00923584
Message ID:
00923600
Views:
20
Evelyn

Without having to write the code for you, or looking too closely into your requirements, my initial suggestion would be to have separate sql selects for each condition, including a flag in your resultant cursor, set to .T. or .F., depending on the condition. The results all UNIONed, and this cursor is the record source of the grid.
The flag does not have to be displayed in the grid, but is used with DynamicFontBold to embolden or not each row.

e.g.
frmMyForm.grdGrid1.SetAll("DynamicFontBold", IIF( csrRes.YourFlag, .T., .F.), "Column")
HTH

Terry

-----------------------------
>i have table drs with description, author and date. and another table temp with userid, description, author and date.
>
>i have a grid in my form with controlsource drs. i want rows to be bold if record in drs is not found in table temp. i should also check if userid in table temp is equal variable nuser. if it is not equal, row in grid with the same must be bold even if drs.description=temp.description, drs.author=temp.author and drs.date=temp.date.
>
>how can i do this? pls help.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform