We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Getting the value of a combo box

Hi, I''m implementing a grid containing a autocomplete combobox. When the user is pressing a key, I want to get the displayed value in the combobox. The grid.cellValue is empty at that time. How can I get the value before the user pressed the Enter key? Thanks for your help! Chris Using : VB.NET + Grid 3.0.0.19

1 Reply

CM Christian Martel June 14, 2005 09:31 AM

I found what I needed! Try Dim cc As GridCurrentCell = grdSearch.CurrentCell Dim renderer As GridCellRendererBase = cc.Renderer Dim style As GridStyleInfo = grdSearch(cc.RowIndex, cc.ColIndex) grdSearch(cc.RowIndex, cc.ColIndex).Text = renderer.ControlValue.ToString() ValidateSearch() Catch ex As Exception MsgBox(ex.Message) End Try >Hi, I''m implementing a grid containing a autocomplete combobox. When the user is pressing a key, I want to get the displayed value in the combobox. The grid.cellValue is empty at that time. How can I get the value before the user pressed the Enter key? > >Thanks for your help! > >Chris > >Using : VB.NET + Grid 3.0.0.19

Loader.
Live Chat Icon For mobile
Up arrow icon