Row change event in datagrid?

  • Thread starter Thread starter Wongalogic
  • Start date Start date
W

Wongalogic

Hi:

Do you know whether there is a row changed event or selection changed event
in datagrid? my problem is that when I press up/down key, row selection
changed, but cannot catch the event. I tried use keyup event, but it does
not listen to up/down/left/right keys. How can I solve this problem?

Thanks,

Dennis
 
Re:

Hi:
I was facing the same problem and finally was pursued into the following solution as the time was running fast ..

I use the variable CurrentRow(int) to store the information about currentrow index and on KeyUp events Sub with folowing code:

If DataGridView.CurrentRow.Index <> CurrentRow Then

......

It is not so smart but maybe you use it...

p.
 
Back
Top