Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing row colour of grid based on condition
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01531331
Message ID:
01531371
Vues:
42
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform