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 get the data From DataGridViewCell

How to get the data From DataGridViewCell

Scheduled Pinned Locked Moved C#
tutorial
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.
  • U Offline
    U Offline
    USrinivas
    wrote on last edited by
    #1

    HI, How to get the values of each cell of the DataGridView, if each cell is of DataGridViewComboBoxCell Type. Thanks in Advance Srinivas -- modified at 23:48 Wednesday 1st February, 2006

    L 1 Reply Last reply
    0
    • U USrinivas

      HI, How to get the values of each cell of the DataGridView, if each cell is of DataGridViewComboBoxCell Type. Thanks in Advance Srinivas -- modified at 23:48 Wednesday 1st February, 2006

      L Offline
      L Offline
      luckyv
      wrote on last edited by
      #2

      hi You can use the 'FindControl' option to get the selected values of combo box lucky

      U 1 Reply Last reply
      0
      • L luckyv

        hi You can use the 'FindControl' option to get the selected values of combo box lucky

        U Offline
        U Offline
        USrinivas
        wrote on last edited by
        #3

        hi, Thanks Lucky, Can you give sample code for that? Srinivas

        L 1 Reply Last reply
        0
        • U USrinivas

          hi, Thanks Lucky, Can you give sample code for that? Srinivas

          L Offline
          L Offline
          luckyv
          wrote on last edited by
          #4

          hi, foreach(DataGridItem item in DataGrid1.Items) { DropDownlist ddl = (DropDownList) e.Item.Cells[1].FindControl("ddl1"); string value = ddl.Selectedvalue; } Above 'ddl1' is id of the combo that you want to get the value of. all the best lucky -- modified at 6:50 Friday 3rd February, 2006

          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