Hello (again),
Within my datagrid I add a control to the datagridtextbox column when
the underlying textbox receives focus as follows:
Combobox1.Size = New Size(Datagrid1. GetCurrentCellB ounds().Width + 3,
combobox1.Size. Height)
sender.Controls .Add(Combobox1)
This works great. The problem is that when focus is set on the
combobox, and user presses the "down arrow" on the keyboard to scroll
to the next record, the combobox loses focus and focus is set behind
the combobox. I already have a BindingManagerB ase to detect when user
scrolls to the next record. I try to set focus to the combobox in
there but without any success.
Is there a way to force focus to the combobox?
My thanks!
Mike.
Within my datagrid I add a control to the datagridtextbox column when
the underlying textbox receives focus as follows:
Combobox1.Size = New Size(Datagrid1. GetCurrentCellB ounds().Width + 3,
combobox1.Size. Height)
sender.Controls .Add(Combobox1)
This works great. The problem is that when focus is set on the
combobox, and user presses the "down arrow" on the keyboard to scroll
to the next record, the combobox loses focus and focus is set behind
the combobox. I already have a BindingManagerB ase to detect when user
scrolls to the next record. I try to set focus to the combobox in
there but without any success.
Is there a way to force focus to the combobox?
My thanks!
Mike.
Comment