Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to have the current row in a grid highlighted? 1

Status
Not open for further replies.

tristero

Programmer
Jan 24, 2003
95
US
I assume using
Code:
grid1.column1.text1.Backcolor[/]
but this only highlights the first column. and doesn't remain higlighted when the grid loses focus.

i need the current record to remain highlighted at all times... can you keep the backcolor even when the grid loses focus?
 
See article 130458


Place the following code in the grid's INIT event:

PUBLIC grno
grno = RECNO()
THIS.setall("Dynamicbackcolor", ;
"IIF(RECNO()=grno,RGB(64,128,128),RGB(255,255,255))","Column")


Place the following code in the grid's AfterRowColChange event:

LPARAMETERS nColIndex
grno = RECNO()
THIS.Refresh()
 
Thank you, but there are a couple of issues. when the grid loses focus it disappears. also, it makes the form very slow and choppy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top