datagrid navigation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i currently have a dataview bound to my datagrid and would like to add some
navigation. i already have a mouseup event that highlights a row when the
user clicks a cell. i am looking for a way to highlight the previous or next
row depending on if the user hits the up or down arrow keys. i've tryed
makeing a few event functions for it but nothing seems to catch movment
through the dataview cells. anyone have an idea how to do this?

thanx in advance.
 
Did you try overriding ProcessCmdKey() ?

BTW, sorry to be anal, but I'd be willing to bet you have a datagrid bound
to a dataview, not vice-versa...
 
i've tried doing a lot of overrides for key functions. the problem is that
the key overrides only get caught if the datagrid has focus, not when the
cells have focus. there is a "CurrentCellChanged" in the property changed
options, but i can not get it to catch the key stroke. when i change the
System.EventArgs to a KeyEventArg it says it's not a valid argument. if you
have any more ideas please let me know.


thanx
 
Back
Top