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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid row highlight

Status
Not open for further replies.

DK47

Programmer
Jun 3, 2003
118
US
I have set a DataGrid to dispaly 18 rows (records) on a page. The ADO bound to it will return thousands of records and I have set up comand buttons and the down arrow key on the keypad to allow the user to scroll through the remaining records.
When the user clicks on a perticular record, the row "highlights" and that highlight moves down the rows as the arrow key or comand button scrolls the records. This is fine and what I want. The problem is when the highlight reaches the last displayed record on the grid and the next record moves up the highlight goes away. Pressing the right arrow key returns the highlight but I don't wish to impose this operation on my users.
Question, is there a way, through code, to change the back color of an entire row when it has focus and reurn it to the default color when it loses focus? This would solve the highlight loss problem.

Regards,
Dwight
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top