Home All Groups Group Topic Archive Search About
Author
18 Jan 2005 3:09 PM
oscar
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.
Author
19 Jan 2005 6:44 PM
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...

Show quoteHide quote
"oscar" <os***@discussions.microsoft.com> wrote in message
news:BCFF0089-C63E-42FD-85EA-4C85BFF575D4@microsoft.com...
>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.
Are all your drivers up to date? click for free checkup

Author
21 Jan 2005 9:17 PM
oscar
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

Show quoteHide quote
"WineNCheese" wrote:

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

Bookmark and Share