Hi to all,
I have a form "MainFormNext" with the value isMDIContainer=true. Inside this form there is a TabbedMDIManager.
When starting up the form I already open the child forms for the tabbedmdimanager:
Private Sub MainFormNext_Load(sender As Object, e As EventArgs) Handles MyBase.Load
MainFormNextSettingsRecords.Show()
End Sub
The form "MainFormNextSettingsRecords" is a mdi child contains a sfdatagrid and some textfields beside as additional controls. There I use the following code to focus in the sfdatagrid:
Private Sub MainFormNextSettingsRecords_Enter(sender As Object, e As EventArgs) Handles MyBase.Enter
Me.SfDataGrid1.Focus()
Me.SfDataGrid1.TableControl.Select()
Console.WriteLine(Me.ActiveControl)
End Sub
When I now start form "MainFormNext" and select the tab of the form "MainFormNextSettingsRecords" the sfdatagrid get focus (according to "me.activecontrol" value: "Syncfusion.WinForms.DataGrid.TableControl") but I am not able to scroll via keyboard through the records in the grid (up down arrow keys). Instead after the first "arrow down" press on the keyboard directly a textbox field is then focused.
When I have a button on my form and set as code the focus() and select() as in the ENTER sub, then the grid is selected and I am able to scroll with key up/down.
Is there any solution for this? I also want to focus directly the datagrid and be able to use the keyboard up/down arrows when form becomes active via tabbedmdimanager selection.
thx
Norbert