Hi,
I have a dialog that containers a DataGridView, this dialog is opened from a parent Form.
I would like the DataGridView to have focus as soon as the form is opened, so on pressing the down key would enable you to scroll down through the rows straight away.
I have tried setting the tab index so that the DataGridView is the first selected item in the form. I have also tried calling the DataGridView.Focus() method in both the dialog constructor and the Form_Load event. I have also tried setting the
DataGridView.Rows(0).Selected = True
None of these seem to work.
Does anyone know how I could fix this problem?
Thanks,
Ben