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:
01531367
Vues:
30
>>>>In the forms init I have
>>>>
>>>>thisform.Grid1.SetAll("FontBold", .t., "Column")
>>>>thisform.Grid1.SetAll("DynamicForeColor","thisform.SetGridColor()","Column")
>>>>
>>>>Only the first column is bold
>>>>
>>>>Colin
>>>
>>>Is there any difference if you change SETALL to:
>>>
>>>FOR EACH oCol in thisform.Grid1.Columns FOXOBJECT
>>>    oCol.FontBold = .t.
>>>NEXT
>>>
>>>thisform.Grid1.SetAll("DynamicForeColor","thisform.SetGridColor()","Column") 
>>>
>>
>>Perhaps we need to set FontBold for each individual object in the column (e.g. for each textbox).
>>
>>Try also
>>
>>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.
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