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.
Unfortunately, activation email could not send to your email. Please try again.

Getting the value of a combo box

Thread ID:

Created:

Updated:

Platform:

Replies:

30233 Jun 14,2005 10:21 AM Jun 14,2005 10:31 AM Windows Forms 1
loading
Tags: GridControl
Christian Martel
Asked On June 14, 2005 10:21 AM

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

Christian Martel
Replied On June 14, 2005 10: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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;