Hello All,
Im having a bit of trouble with tabbing and the dropped down combo box (within a datagrid).
e.g.
and
The problem is, that when I select an item in the dropped down portion of the ComboBox, and then hit Enter (which is processed as a Tab), the Text Box "underneath" the ComboBox doesnt collect the new entry.
So, I guess my question is really: How do I "get at" the selected item in the ComboBox which inherits the Text Box in the datagrid?
Thanks,
georg
Im having a bit of trouble with tabbing and the dropped down combo box (within a datagrid).
e.g.
Code:
ColumnComboBox.DroppedDown = True
and
Code:
Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, _
ByVal keyData As System.Windows.Forms.Keys) As Boolean
Explanation: This will turn the enter key into a tab key
If msg.WParam.ToInt32() = CInt(Keys.Enter) Then
SendKeys.Send("{Tab}")
Return True
End If
Return MyBase.ProcessCmdKey(msg, keyData)
End Function ProcessCmdKey
The problem is, that when I select an item in the dropped down portion of the ComboBox, and then hit Enter (which is processed as a Tab), the Text Box "underneath" the ComboBox doesnt collect the new entry.
So, I guess my question is really: How do I "get at" the selected item in the ComboBox which inherits the Text Box in the datagrid?
Thanks,
georg