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. combobox in gridview

combobox in gridview

Scheduled Pinned Locked Moved C#
questionhelp
4 Posts 4 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.
  • M Offline
    M Offline
    Mohammed Elkholy
    wrote on last edited by
    #1

    hi i hope i can find an answer of my question soooooon i have a combobox column in gridview this combobox has display member and value member i am tring to get the value of the selected display member to set it to another column in the gridview how can i do it thnx for help

    MD_NADA

    I K 2 Replies Last reply
    0
    • M Mohammed Elkholy

      hi i hope i can find an answer of my question soooooon i have a combobox column in gridview this combobox has display member and value member i am tring to get the value of the selected display member to set it to another column in the gridview how can i do it thnx for help

      MD_NADA

      I Offline
      I Offline
      isamir
      wrote on last edited by
      #2

      Hi, You can check in the event handler "SelectedIndexChanged" private void cbxbox1_SelectedIndexChanged(object sender, System.EventArgs e) { if (cbxbox1.SelectedValue != "") { /*Set the text in second combo box or you can find the item in second combo and select it*/ cbxbox2.text = cbxbox1.SelectedValue.ToString()); } } I hope it will help. -Samir.

      1 Reply Last reply
      0
      • M Mohammed Elkholy

        hi i hope i can find an answer of my question soooooon i have a combobox column in gridview this combobox has display member and value member i am tring to get the value of the selected display member to set it to another column in the gridview how can i do it thnx for help

        MD_NADA

        K Offline
        K Offline
        Keshav V Kamat 0
        wrote on last edited by
        #3

        You will get all the information here http://www.datagridgirl.com/articles.aspx[^]

        Keshav Kamat :) India

        N 1 Reply Last reply
        0
        • K Keshav V Kamat 0

          You will get all the information here http://www.datagridgirl.com/articles.aspx[^]

          Keshav Kamat :) India

          N Offline
          N Offline
          Nouman Bhatti
          wrote on last edited by
          #4

          in web form u can access the value gridview1.FindControl("DropDownList1").value

          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