Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Change the color of grid line which is highlighte
Message
From
08/05/1997 06:04:29
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordan
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00031010
Message ID:
00031290
Views:
46
>>Is there a way to change the color of a grid line, which is currently highlighted.
>>
>>The property which is available for grid line color only changes the color when it is not selected, once it is selected, I guess it uses colors from Windows.
>>
>>Any way to change the color ??
>
>Vinod,
>
>Look at the properties that start with 'dynamic' in the grid class column. You can enter a function in it whose result is the color that you want, and this way you can let this color depend on the data of the cursor underlying the grid.
>
>For example, if you wanted to change the backcolor of a grid for the selected line, you could have an the following statement in the DynamicBackcolor property of each of your columns:
>
>iif(recno()=thisform.nSaveRecno,rgb(selected),rgb(not selected))
>
>You have to make sure that you set thisform.nSaveRecno= recno() of the underlying cursor/table before the form is refreshed.
>
>This works in VFP3.0. It is neighter very OO, nor very fast, so you should implement it only where absolutely necessary.
>
>Make sure you look into help if you want to implement this programmatically.
>
>HTH,
>
>Marc

Thanks !! I will try that.
Previous
Reply
Map
View

Click here to load this message in the networking platform