Posted on: 10/26/2012 1:54:57 AM | Views : 231

I have a stored proc for select and i am populating a DDL inside a gridview and i want to display like template name in the first column and related run dates of the template in a DDL.
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { DataTable dt=new DataTable(); dt=Common.Loading(); DropDownList ddl = e.Row.FindControl("DropDownList1") as DropDownList; ddl.DataTextField = "RunDate"; ddl.DataValueField = "RunDate"; ddl.DataSource = dt; ddl.DataBind(); } but i want to show like specific template rundates in DDL but i am getting all the rundates in the DDL how can i do this?
...

Go to the complete details ...