Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Highlight Followup
Message
 
 
À
20/09/2001 07:27:02
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00558651
Message ID:
00558655
Vues:
19
Hi!

Take a look to the Grid Highlighter in the downloads section.
For your code, use Recno(Grid.RecordSource) or RecNo("alias") instead of Grid.ActiveRow to track currect row.

HTH.

>Hi,
>
>I've created a grid that user can highlight a row as using a listbox..
>
>in the grid's afterrowcolchange:
>
>this.nGridRecNo = this.activeRow
>this.SetAll('DynamicBackColor', "iif(this.nGridRecNo==this.activerow,";
>+allt(str(this.lnColor))+ "," + allt(str(this.BackColor)) + ")",'Column')
>
>
>it works well but how can i keep the color not disappear when the grid lost focus?
>
>thanks,
>Jimi
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform