Hello,
Here is my question regarding 'Actipro for Windows Form' more than .Net, Windows Form or C# :
All the 'interior pages' of my wizard feature a 'SplitContainer' containing a 'TreeView' in the 'Panel1' and a 'DataGridView' in the 'Panel2'.
I need to have that at each transition to the next page, the focus is always given to the 'DataGridView'. That means that :
- this control receives the keyboard actions (Arrow up, arrow down) directly
- whithout the user having first to click on the DataGridView
- that this focus should be given at entering og the int. page.
Preferably by putting in the constructor a statement particular to the DataGridView (not to the SplitContainer.Panelx)
In my classes layout,doesn't make it.
In my 'WizardForm' main form (partial class with 'WizardForm.designer'), I have (as it has to be):Having a '...dataGridView.Focus()' statement linked to the Next button activation when we still are in the previous interior page can't help to determine the control getting the focus in the 'arriving' page.
Could other events help me that the event particular to the 'Next' button activation ? An event like 'AtPageEntering' ?
- Selection Changed event ?
- GotFocus event
Remark 1 : Not at the 'constructors' execution time, which occurs a long time before.
Remark 2 : I organized my classes such a way that I have one class (of TreeView and DataGridView) for each interior page.
I think it is a question that could impact a lot of developers using Actipro, isn't it ?
Many thanks in advance.
[Modified at 07/05/2010 10:08 AM]
Here is my question regarding 'Actipro for Windows Form' more than .Net, Windows Form or C# :
All the 'interior pages' of my wizard feature a 'SplitContainer' containing a 'TreeView' in the 'Panel1' and a 'DataGridView' in the 'Panel2'.
I need to have that at each transition to the next page, the focus is always given to the 'DataGridView'. That means that :
- this control receives the keyboard actions (Arrow up, arrow down) directly
- whithout the user having first to click on the DataGridView
- that this focus should be given at entering og the int. page.
Preferably by putting in the constructor a statement particular to the DataGridView (not to the SplitContainer.Panelx)
In my classes layout,
dataGridView.Focus();
In my 'WizardForm' main form (partial class with 'WizardForm.designer'), I have (as it has to be):
private void WizardNextButton(object sender, ActiproSoftware.Wizard.WizardPageCancelEventArgs e)
{
switch (Wizard.SelectedIndex)
{
case (int)WizPagType.wizPag0: // Welcome page
break;
case (int)WizPagType.wizPag1:
wizPag2_TreeAndGrid.dataGridView.populateDataGridV();
wizPag2_TreeAndGrid.treeView.wizPag2_TreeView_Load();
// Getting the focus without having first to click on the DataGridView control.
wizPag1_TreeAndGrid.dataGridView.Focus(); // Doesn't work.
break;
case (int)WizPagType.wizPag2:
...
Could other events help me that the event particular to the 'Next' button activation ? An event like 'AtPageEntering' ?
- Selection Changed event ?
- GotFocus event
Remark 1 : Not at the 'constructors' execution time, which occurs a long time before.
Remark 2 : I organized my classes such a way that I have one class (of TreeView and DataGridView) for each interior page.
I think it is a question that could impact a lot of developers using Actipro, isn't it ?
Many thanks in advance.
[Modified at 07/05/2010 10:08 AM]