Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6969685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:36:45+00:00 2026-05-27T16:36:45+00:00

In plain combobox when comboboxstyle is set as Simple and user something type in

  • 0

In plain combobox when comboboxstyle is set as Simple and user something type in the field and then press Enter KeyUp event is fired.
In datagridview when I have ComboboxColumn and style set as Simple KeyUp event isn’t fired and KeyPress and KeyDown. And I’ve created my own custom datagridview and KeyUp in editingmode isn’t fired too. And I’ve created my won custom DataGridViewComboBoxCell and OnKeyUp, EnterUnsharesRow, KeyDownUnsharesRow events aren’t called.
When user type something in this comboboxcell and press Enter this text is cleared. How to commit entered text in the cell and which event is fired?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:36:46+00:00Added an answer on May 27, 2026 at 4:36 pm

    You need to access the underlying editing control during the EditingControlShowing event of the DataGridView.

    void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
    {
        if (e.Control is DataGridViewComboBoxEditingControl)
        {
            DataGridViewComboBoxEditingControl cb =  
                e.Control as DataGridViewComboBoxEditingControl; 
            cb.DropDownStyle = ComboBoxStyle.Simple;
    
            cb.KeyUp += new KeyEventHandler(cb_KeyUp);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can plain Javascript objects have event attached to them? Say something like this: obj
Plain and simple, can anyone explain me how to connect to a mysql server
In plain English, what are the disadvantages and advantages of using SET TRANSACTION ISOLATION
Plain and simple. I start an Activity and check if the phone has the
Plain and simple, does anybody know why this: Select 30 * 220 / 30
In plain old SQL, I can do something like this: select * from mytable
In plain old HTML the following code will work: <input type=button value=click onClick=function() />
I have an plain simple java application that use spring 2.5.5 and hiberate 3.3.1.GA.
In plain English, how is $this used in PHP? It's such a simple concept
Plain-vanilla NHibernate setup, eg, no fluent NHibernate, no HQL, nothing except domain objects and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.