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. DataGrid and DropdownList

DataGrid and DropdownList

Scheduled Pinned Locked Moved ASP.NET
databasehelp
4 Posts 3 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
    Mkanchha
    wrote on last edited by
    #1

    Hi to All, I put DropdownList inside the DataGrid. I want to bind that DropdownList. Values from Database. When, I select the values on that DropdownList, the values of DataGrid should be change.... Please help me soon, Mohan balal

    G 1 Reply Last reply
    0
    • M Mkanchha

      Hi to All, I put DropdownList inside the DataGrid. I want to bind that DropdownList. Values from Database. When, I select the values on that DropdownList, the values of DataGrid should be change.... Please help me soon, Mohan balal

      G Offline
      G Offline
      gauthee
      wrote on last edited by
      #2

      filling the dropdownlist logic should be written inside the datagrid's itemdatabound event! Now, when you add the dropdownlist in the datagrid give he autopostback property as true for the dropdownlist and then when the selection is changed you have to rebind the datagird according to the value selected in the dropdownlist, this logic would go in the itemcommand event of the datagrid!

      Gautham

      M 1 Reply Last reply
      0
      • G gauthee

        filling the dropdownlist logic should be written inside the datagrid's itemdatabound event! Now, when you add the dropdownlist in the datagrid give he autopostback property as true for the dropdownlist and then when the selection is changed you have to rebind the datagird according to the value selected in the dropdownlist, this logic would go in the itemcommand event of the datagrid!

        Gautham

        M Offline
        M Offline
        Mkanchha
        wrote on last edited by
        #3

        Thanks for Your Reply, If you have code or Examples Please Post it Mohan balal

        _ 1 Reply Last reply
        0
        • M Mkanchha

          Thanks for Your Reply, If you have code or Examples Please Post it Mohan balal

          _ Offline
          _ Offline
          _AK_
          wrote on last edited by
          #4

          Here[^] you can get so many examples for datagrid.

          Best Regards, Apurva Kaushal

          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