Problem with DataGridViewComboBoxColumn

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • falcon eyes
    New Member
    • Dec 2008
    • 9

    Problem with DataGridViewComboBoxColumn

    Hi Everyone
    I wrote an application for bank account manger with C# and i have data grid view with DataGridViewCom boBoxColumn, and i want to populate it with enum variable has three value.
    the question is
    how to perform that and how to obtain the selected item from the combobox column?
  • Sl1ver
    New Member
    • Mar 2009
    • 196

    #2
    comboBox.Item.A dd(), or comboBox.Item.A ddRange(), or if you get the data from a database, see if the dataReader has rows then read it and use .Add() method.

    If you want to get the the selected item, comboBox.Select edItem.ToString ()

    Comment

    • falcon eyes
      New Member
      • Dec 2008
      • 9

      #3
      but the DataGridViewCom boBoxColumn doesn't have a function or property with the name "SelectedIt em"

      Comment

      • Sl1ver
        New Member
        • Mar 2009
        • 196

        #4
        are you using visual studio build in datagridviewcom bobox or are you using n third party component?

        Comment

        Working...