Information générale
Catégorie:
Codage, syntaxe et commandes
Check help for SETALL (Method Example)
frmMyForm.grdGrid1.SetAll("DynamicBackColor", "IIF(MOD(RECNO( ), 2)=0, RGB(255,255,255), RGB(0,255,0))", "Column") && Alternate white and green records
If you change the IIF() condition you can have it highlight those rows that match your criteria. (set the 'other' color to whatever it currently is)
You'll have to do a lot of extra work if you're trying to use the dynamicbackcolor property to indicate the current row pointer. (you'll have to tag the records, and dynamicbackcolor if the record is tagged- and set/unset the tag in the before/after change row - and it might not work right anyway, which is why i gave up on it)
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement