datagrid navigation

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.
 
W

WineNCheese

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...
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top