DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2007

    Adding ComboBox to a bound DataGridView

    I have a bound datagridview control. One of the columns has an integer value that correlates to an enum. For example, the column is Order_Status, which can have a value correlating to an OrderStatus enum (Completed = 1, Shipped = 2, In_Process = 3, etc.). In my grid I want to have the Order Status column be presented to the user as drop down list box. I don't want to fill the list values from a database. I want to fill them in code with my enum values, with the textual representation being what the user sees in the list. I want to control what the user sees in the list. This used to be so extremely easy with VB6 and the videosoft grid. I'm amazed at the complexity in doing this in .Net. So, to summarize:

    - I have a DataGridView control bound to a Order table
    - I have a Order_Status column that correlates to an enum
    - I want to present the Order_Status column to the user as a combobox

    Has anyone here done this? Am I making this harder than it really is? Please, I'd appreciate any help on this.

  2. #2
    Join Date
    Nov 2003
    Portland, OR
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Mar 2007
    Thanks Phil, but I've already gone down that road. That's why I'm here. Unless there is a link I missed that shows how to do it. There's a lot of links but none of them are showing what I need. Unfortunately I really need something more than a "search the internet" answer. I'm not trying to be a smart alec. I actually reached the end of the internet yesterday searching for this.


Similar Threads

  1. DatagridView combobox
    By NXSA in forum .NET
    Replies: 0
    Last Post: 07-31-2006, 04:57 PM
  2. Adding on to a ComboBox list
    By miss_jess in forum VB Classic
    Replies: 12
    Last Post: 05-31-2005, 09:33 AM
  3. ComboBox - adding item data
    By Mike in forum .NET
    Replies: 1
    Last Post: 03-27-2002, 05:05 PM
  4. Adding item to combobox
    By Eray Sazan in forum Web
    Replies: 0
    Last Post: 03-22-2001, 07:11 PM
  5. ComboBox Bound Error
    By maya in forum VB Classic
    Replies: 2
    Last Post: 10-27-2000, 11:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.