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 812211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T01:10:05+00:00 2026-05-15T01:10:05+00:00

(This question is narrower in scope than this question I asked earlier.) Say I

  • 0

(This question is narrower in scope than this question I asked earlier.)

Say I have a DataGridViewComboBoxColumn, and want to switch the style of the ComboBox control between DropDownList and DropDown (mainly for the text field editing capability). I’d like to do this on a row-by-row basis (at the DataGridViewComboBoxCell level).

How would I do that programatically?

Or maybe a different way of asking: How do I access the ComboBox control given an object of type DataGridViewComboBoxCell?

(I’m in VB 2005.)

Thanks as always.

  • 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-15T01:10:06+00:00Added an answer on May 15, 2026 at 1:10 am

    Not sure if you still need an answer, but i have a question that covers similar ground: Detect which column is showing an editing control in a datagridview

    i use something like this line to get the combobox out of the DataGridView (DGV) in my DataGridView’s CellValidating event:

    Dim comboBox As DataGridViewComboBoxCell = DGV.Item(e.ColumnIndex, e.RowIndex)
    

    later i use this line to get change the DropDownList ComboBoxCell to a DropDown:

    cb.DropDownStyle = ComboBoxStyle.DropDown
    

    For mine to work i had to make sure the ‘cb’ was of the ComboBox type, i dont remember if i was able to get it working well if the combobox was of the DataGridViewComboBoxCell type.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My last question was somewhat narrower than this one. I am interested to know
This question is kind of an add-on to this question In C#, a switch
This question comes on the heels of the question asked here . The email
Say I have the following code (context narrowed down as to keep the question
This is a derivative question of a question I have posted here: In App
This is perhaps related to this question , but I have slightly more information.
EDIT I have effectively rewritten this question in order to greatly improve its quality
This question is hard to explain so please bear with me. I have a
I am following up from this question here The problem I have is that
I have created a custom style for my WPF datagrid by overriding its control

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.