data grids - determine when we have scrolled down

  • Thread starter Thread starter Robert Smith
  • Start date Start date
R

Robert Smith

Hello,
I need to determine when the user has scrolled down
a data-grid with the up/down arrow so that I can trigger a
method to run using the data in the first column of the
selected row in the grid.

What event triggers when you move up/down the grid.

Thanx in advance

Robert
 
Hello Robert,

I think there are several options possible:

a) Reacting on the CurrentCellChanged event (but this will trigger upon
mouse clicks as well)
b) Inheriting from the DataGrid and overriding the ProcessDialogKey and
ProcessKeyPreview methods to react on up/down keys

To the best of my knowledge, there is no specific event for this situation
however.
 
Back
Top