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. Drop down in template column

Drop down in template column

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

    I have two drop down in a datagrid.What i want when i select an item from the first the second one should be populated accordingly.My problem is i have created an event handler for the first drop down but how do i call the second drop down to populate

    _ 1 Reply Last reply
    0
    • S smita_roy

      I have two drop down in a datagrid.What i want when i select an item from the first the second one should be populated accordingly.My problem is i have created an event handler for the first drop down but how do i call the second drop down to populate

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

      You can call a function on OnSelectedIndexChanged event of the dropdownlist and in that event you can populate another dropdownlist. Are you getting any problem in this?

      Best Regards, Apurva Kaushal

      S 1 Reply Last reply
      0
      • _ _AK_

        You can call a function on OnSelectedIndexChanged event of the dropdownlist and in that event you can populate another dropdownlist. Are you getting any problem in this?

        Best Regards, Apurva Kaushal

        S Offline
        S Offline
        smita_roy
        wrote on last edited by
        #3

        how do i cal the second drop down that is the problem .How do i identify the control which is inside a datagrid

        _ 1 Reply Last reply
        0
        • S smita_roy

          how do i cal the second drop down that is the problem .How do i identify the control which is inside a datagrid

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

          You have to iterate through all the items of the datagrid and then you can find the other dropdown list(findcontrol method) and populate that.

          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