Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Highlight Followup
Message
From
20/09/2001 07:31:44
 
 
To
20/09/2001 07:27:02
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00558651
Message ID:
00558655
Views:
20
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform