i want, when i choose item from drop down list the selected column's item of database will show me that row data in grid view what i suppose to do?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted May 17, 2013, 9:29 PM EDT
selva kumarRank #2,987 · 483 reputationPosted May 17, 2013, 9:31 PM EDT
then..write the code on dropdownlist selected index changed event....
protected void ddl1_SelectedIndexChanged(object sender, EventArgs e)
{
if(ddl1.selecteditem==columnname)
{
sql dataadapter SDA=new sql dataadapter("Select column name from table name",Con);
dataset Ds=new dataset();
SDA.Fill(Ds);
gridview1.datasource=Ds;
gridview1.databind();
}
elseif(//column name//)
{
// same code //
}
}
try this code this Will be working.....