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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Gridview, EditItem template as DropDownList ... how do I get update working properly?

Gridview, EditItem template as DropDownList ... how do I get update working properly?

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

    When I edit and update a normal gridview row using a stored procedure the griddview passes all the correct peramaters to my stored procedure. Now Iv'e changed one of the columns to be a dropdown list while in edit mode. And it now says that the parameter associated with that column is missing? What do i need to change to get it to pick the value out of the drop down list and pass it to the parameter. Cheers.

    M 1 Reply Last reply
    0
    • R Red_Wizard_Shot_The_Food

      When I edit and update a normal gridview row using a stored procedure the griddview passes all the correct peramaters to my stored procedure. Now Iv'e changed one of the columns to be a dropdown list while in edit mode. And it now says that the parameter associated with that column is missing? What do i need to change to get it to pick the value out of the drop down list and pass it to the parameter. Cheers.

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Do you use the GridView control with any datasource control? Do you use the Bind method with the DropDownList? You can define the ControlParameter or ganeral Parameter in the datasource control to get the value from the DropDownList.

      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