Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to access a comboBox in dataGridView?

How to access a comboBox in dataGridView?

Scheduled Pinned Locked Moved C#
questiontutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Admin887
    wrote on last edited by
    #1

    hi, i have a small question.. How can i add and access a ComboBox in dataGridView.. i means,how can i add new Lines in these ComboBoxes and check which line is selected? thank you G.

    W 1 Reply Last reply
    0
    • A Admin887

      hi, i have a small question.. How can i add and access a ComboBox in dataGridView.. i means,how can i add new Lines in these ComboBoxes and check which line is selected? thank you G.

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      Admin887 wrote:

      how can i add new Lines in these ComboBoxes

      You find the correct column from the datagridview's columns[^] collection (which is an instance of DataGridViewComboBoxColumn). Then on DataGridViewComboBoxColumn you have Items[^] collection or DataSource[^].

      Admin887 wrote:

      check which line is selected

      Through the Value[^] property.

      The need to optimize rises from a bad design.My articles[^]

      A 1 Reply Last reply
      0
      • W Wendelius

        Admin887 wrote:

        how can i add new Lines in these ComboBoxes

        You find the correct column from the datagridview's columns[^] collection (which is an instance of DataGridViewComboBoxColumn). Then on DataGridViewComboBoxColumn you have Items[^] collection or DataSource[^].

        Admin887 wrote:

        check which line is selected

        Through the Value[^] property.

        The need to optimize rises from a bad design.My articles[^]

        A Offline
        A Offline
        Admin887
        wrote on last edited by
        #3

        Thank you!! :D i am very appreciate your help :D thank you again!

        W 1 Reply Last reply
        0
        • A Admin887

          Thank you!! :D i am very appreciate your help :D thank you again!

          W Offline
          W Offline
          Wendelius
          wrote on last edited by
          #4

          You're welcome :)

          The need to optimize rises from a bad design.My articles[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups