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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
selva kumarPosted May 18, 2013, 1:31 AM
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.....
Satyapriya NayakPosted May 18, 2013, 1:29 AM