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. Web Development
  3. ASP.NET
  4. Dropdownlist in GridView

Dropdownlist in GridView

Scheduled Pinned Locked Moved ASP.NET
questionannouncement
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.
  • K Offline
    K Offline
    kjosh
    wrote on last edited by
    #1

    Hi, I have Gridview which contains id, status, name, Edit button. The edit mode of the GridView will display the DropdownList for the Status column. So user selects the Edit button, and update the status by selecting from the DropdownList. My GridView has 100 rows. To update the Status, go to each row and select value from Dropdownlist and click on Update button. Instated of editing each row to change the value of Status, I want to to display the Checkboxes in one column in Gridview to update all at once(This is needed when we want to Update 30 rows with the one status value). Now Where we need to display the Dropdown list in the GridView to select the Status values and selecting the Check boxes. Can we display the dropDownlist in the Header row of GridView? and checkboxes are for each row. In this situation what is the Best way? Thanks in advance.

    V 1 Reply Last reply
    0
    • K kjosh

      Hi, I have Gridview which contains id, status, name, Edit button. The edit mode of the GridView will display the DropdownList for the Status column. So user selects the Edit button, and update the status by selecting from the DropdownList. My GridView has 100 rows. To update the Status, go to each row and select value from Dropdownlist and click on Update button. Instated of editing each row to change the value of Status, I want to to display the Checkboxes in one column in Gridview to update all at once(This is needed when we want to Update 30 rows with the one status value). Now Where we need to display the Dropdown list in the GridView to select the Status values and selecting the Check boxes. Can we display the dropDownlist in the Header row of GridView? and checkboxes are for each row. In this situation what is the Best way? Thanks in advance.

      V Offline
      V Offline
      Venkatesh Mookkan
      wrote on last edited by
      #2

      Mahimam wrote:

      Can we display the dropDownlist in the Header row of GridView? and checkboxes are for each row.

      Yes, you can. Use TemplateColumn to do that.

      Venkatesh Mookkan My: Website | Yahoo Group | Blog Spot

      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