i have a header text city and city is retrived from database which is in bound field.
i just want to put a drop downlist near to header text city which ave item some city name.
i require when i select the city from drop downlist in gridview. it only show that city grid view.
Dropdownlist control in griodview
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Parveen SiwachRank #6,758 · 257 reputationPosted May 19, 2013, 10:15 PM EDT
.aspx:
.cs:
protected void Page_Load(object sender, EventArgs e)
{
BindData();
}
private void BindData()
{
DataTable dt = new DataTable();
dt.Columns.Add("Name");
DataRow dr = dt.NewRow();
dr["Name"] = "Parveen";
dt.Rows.Add(dr);
gvTest.DataSource = dt;
gvTest.DataBind();
}
Hope this will solve your problem.