combobox.focus in a datagrid.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jereviscious

    combobox.focus in a datagrid.

    Hi all

    I've added a combobox to the datagrid control using the following method

    dataGridTextBox Column7.TextBox .Controls.Add(c omboControl);



    The problem is that when I tab to the Column that contains the combobox, the
    focus is on the underlying textbox in the datagrid.

    I've tried doing this:

    comboControl.fo cus();

    But unfortunately what happens here is that it forces a tab to the next
    column! I can't get the comboControl to get the focus without clicking on it
    with the mouse! very annoying. Any help would be appreciated.

    MSDE 2003

    ..NET FRAMEWORK 1.1






Working...