protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e) { GridView1.EditIndex = e.NewEditIndex; DropDownList d = (DropDownList)(GridView1.Rows[GridView1.EditIndex].FindControl("DropDownList1")); d.Items.Clear(); d.DataSource = databindobj.viewdata("select * from tbl_category"); d.DataValueField = "_id"; d.DataTextField = "_category"; d.DataBind(); d.Items.Insert(0, "No Answer"); }
null
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)