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. Visual Basic
  4. Combobox value not showed in the datagridview

Combobox value not showed in the datagridview

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasehelptutorial
2 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.
  • D Offline
    D Offline
    D Manivelan
    wrote on last edited by
    #1

    Hai, Am developing vb.net2008 windows application. I have two datagridview table datagridview1 column one has combobox. It stored 4 string. below see the code.

        Dim gridComboBox As New DataGridViewComboBoxCell
        With datagridFunction
            If .Rows.Count = 0 Then Return 0
             gridComboBox.Items.Add("LTrim")
             gridComboBox.Items.Add("RTrim")
             gridComboBox.Items.Add("Insert")
              gridComboBox.Items.Add("Replace")
            .Item(0, datagridFunction.CurrentRow.Index) = gridComboBox
            .Visible = True
        End With
    

    am using following code

    datagridview1.rows(0).cells(0).value = "LTrim"
    datagridview1.rows(1).cells(0).value = "RTrim"

    but combobox value not showed in the datagridview. I don't know how to show combobox value here. plz help me very urgent

    M 1 Reply Last reply
    0
    • D D Manivelan

      Hai, Am developing vb.net2008 windows application. I have two datagridview table datagridview1 column one has combobox. It stored 4 string. below see the code.

          Dim gridComboBox As New DataGridViewComboBoxCell
          With datagridFunction
              If .Rows.Count = 0 Then Return 0
               gridComboBox.Items.Add("LTrim")
               gridComboBox.Items.Add("RTrim")
               gridComboBox.Items.Add("Insert")
                gridComboBox.Items.Add("Replace")
              .Item(0, datagridFunction.CurrentRow.Index) = gridComboBox
              .Visible = True
          End With
      

      am using following code

      datagridview1.rows(0).cells(0).value = "LTrim"
      datagridview1.rows(1).cells(0).value = "RTrim"

      but combobox value not showed in the datagridview. I don't know how to show combobox value here. plz help me very urgent

      M Offline
      M Offline
      Maciej Los
      wrote on last edited by
      #2

      Not enough information to help you. Please, elaborate.

      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