protected void grid1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
string s2 = "select cname from Country";
SqlDataAdapter ada = new SqlDataAdapter(s2, con);
DataSet ds = new DataSet();
ada.Fill(ds);
DropDownList ddl1 = (DropDownList)e.Row.FindControl("ddl1");
ddl1.DataSource = ds;
ddl1.DataTextField = "subDivisionName";
ddl1.DataBind();
}
}