|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
datagrid navigationi 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... 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. 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...
Other interesting topics
No touch deployment - IEEXEC won't fire up
No popup event when using shortcuts in context menu How can one select from overlapped panels in the form design View? extra header in datagrid Is there a way to set the category order in the PropertyGrid Changing Treeview's selectedNode in Afterselect event. Error lost in databinding DateTimePicker events Determine Selected Rows in DataGrid C# Check-boxes on TreeNodes |
|||||||||||||||||||||||