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. Dropdown List in Datagrid

Dropdown List in Datagrid

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
2 Posts 1 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.
  • A Offline
    A Offline
    AZBugsBunny
    wrote on last edited by
    #1

    I have dropdown list in everyrow of datagrid. I would like to know if and how I can capture the SelectedIndex Changed event of the dropdown list in the datagrid. Basically, I want to do some kidn of functionality whenever a user selects a different value in the dropdown list box in the datagrid and hence require to capture the SelectedIndex Changed event Any has a clue abt how to do this? Thanks Sujatha

    A 1 Reply Last reply
    0
    • A AZBugsBunny

      I have dropdown list in everyrow of datagrid. I would like to know if and how I can capture the SelectedIndex Changed event of the dropdown list in the datagrid. Basically, I want to do some kidn of functionality whenever a user selects a different value in the dropdown list box in the datagrid and hence require to capture the SelectedIndex Changed event Any has a clue abt how to do this? Thanks Sujatha

      A Offline
      A Offline
      AZBugsBunny
      wrote on last edited by
      #2

      This can be done in by adding the delegate to OnSelectedIndexChange event in the aspx page to point to the method that handles the functionality as below : In .aspx In c# codebehind : public void ddlSolverFlag_SelectedIndexChanged(object sender, System.EventArgs e) { DropDownList ddlFlag = (System.Web.UI.WebControls.DropDownList)sender; this.lblSolverFlags.Text += "solver_flag : " +ddlFlag.SelectedValue; this.lblSolverFlags.Visible=true; }

      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