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

Datagrid events - row highliting not following currentrowindex

Status
Not open for further replies.

DwaineC

MIS
Jan 6, 2003
40
0
0
US
Hey... in the datagrid the user has a currentrowindex which is highlited in blue. They click on a different row and I validate original row in the CurrentCellChanged event (even though the CurrentRowIndex contains the NEW row clicked, I know the original one...) Anyway, if the original row is invalid I reset the Currentrowindex back to the original row (yes, it calls the CurrentCellChanged event recursively, but I'm handling that).

The problem is, the new row clicked is still highlighted in blue, even though it IS NOT the current row!

I hate dealing with events. I do not want the new row highlighted until I have validated the old one...

Any ideas??
 
Duh... the ol' validation event. Geez, I'm killing myself here!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top