Skip to content

Drop down list to gridview

satish kumar

Asked May 30, 2014, 4:47 AM EDT1 answer
Share
LinkedInX
hi,
i have a dropdownlist and gridview data.........in the dropdownlist,when i select a name that is there in gridview i must get that particular name details again in gridview...............only details of the selected name only.......
 
 
can anyone help me out???
 thanx 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi!

     protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
        {
            DropDownList ddt = (DropDownList)GridView1.FindControl("DropDownList2");
            ddt = (DropDownList)sender;
            string str= ddt.SelectedItem.Text;
    }
    0