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:
01531377
Vues:
39
>>>>>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.

Thanks as ever
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform