Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing row colour of grid based on condition
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01531331
Message ID:
01531371
Views:
44
This message has been marked as a message which has helped to the initial question of the thread.
>>>>thisform.Grid1.SetAll('FontBold',.t., 'textbox')
>>>
>>>Thanks for all your patience
>>>
>>>I am now told that what we want to do is to bold a whole row if we click on any element of it - otherwise the grid has no bold
>>
>>You can achieve this with DynamicFontBold, new property to hold current recordno and this condition
>>
>>recno('TableAlias') = this.nRecno (assuming a grid has new property nRecno which you set in AfterRowColChange event.
>
>Sorry - not one of my better days - I don't understand that

Grid:Init
this.AddProperty('nRecno',0)

this.SetAll('DynamicFondBold','this.nRecno = recno("MyTable")', 'Column')
Grid:AfterRowColChange event:
dodefault(nColIndex)
this.nRecNo = recno(this.RecordSource)
This should make the current row bold.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform