Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Down key into datagrid when it does not have focus? 1

Status
Not open for further replies.

Blitz

Technical User
Jul 7, 2000
171
US
What i want to do is whenever the downarrow is pressed, whether the datagrid has focus or not, the datagrid reacts as if the downarrow was pressed while it has focus. How would i go about doing this? I know how to use the forms keydown to react to the downarrow but i dont know how to then pass that to the datagrid so it acts as if it had the focus when the downarrow was pressed.
 
You can manipulate the position of the datagrid binding manager using:

DataGrid.BindingContext(DataGrid.DataSource).Position += 1
 
thank you it worked perfectly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top