M
mfleet1973
Hello (again),
Within my datagrid I add a control to the datagridtextboxcolumn when
the underlying textbox receives focus as follows:
Combobox1.Size = New Size(Datagrid1.GetCurrentCellBounds().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 BindingManagerBase 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 datagridtextboxcolumn when
the underlying textbox receives focus as follows:
Combobox1.Size = New Size(Datagrid1.GetCurrentCellBounds().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 BindingManagerBase 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.