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.comICQ #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.