How can I get my datagridview to respond to hotkeys ?
If hotkey = numeric keypad "1" then goto dgv row 1
or go to row containing "string"
Thanks for any help.
Printable View
How can I get my datagridview to respond to hotkeys ?
If hotkey = numeric keypad "1" then goto dgv row 1
or go to row containing "string"
Thanks for any help.
anyone ?
Is the table bound? JM was just explaing to me how you may be able to use the BindingSource for this sort of thing.
I can arrange it so that it is bound to a tempTable. My question is more how to get datagridview to respond to hotkeys like set focus/autoscroll to a particular row containing...
anyone ?
u can bind the table and go to a position
you can give mybindingmanibase.position = ___ where __ is the position returned by ur hotkeyCode:Dim myBindingMainBase As BindingManagerBase
Dim dTable As DataTable
Dim da_adapter As New OleDbDataAdapter("string ", Connection)
da_adapter.Fill(ds_dataset, "tablename")
dTable = ds_dataset.Tables(0)
dgDataGrid.DataSource = ds_dataset.Tables(0)
myBindingMainBase = BindingContext(ds_dataset.Tables(0))
myBindingMainBase.Position = 0
hope this helps u out...would b glad if i was a help to anyone as this forum has really helped me a lot...
I dont understand the question:Quote:
Originally Posted by Xancholy
shall it be able only to go to the rows (numpad "0" to numpad "9")?
from where the "string" will come? In what Column do u want to look for "string"?