I want to add data from dropdown list to gridview ,,,
here my code
- con.Open();
- SqlDataAdapter adpr1 = new SqlDataAdapter("select * from ItemMasterFile ", con);
- DataSet dspr1 = new DataSet();
- adpr1.Fill(dspr1);
- DropDownList1.DataSource = dspr1.Tables[0];
- DropDownList1.DataTextField = "Descriptionitem";
- DropDownList1.DataValueField = "Codeitem";
- DropDownList1.DataBind();

Priyanka JainPosted Aug 7, 2019, 3:59 AM
Akhter HUssainPosted Aug 6, 2019, 1:03 PM
Puneet KankarPosted Aug 6, 2019, 11:25 AM
Akhter HUssainPosted Aug 6, 2019, 10:23 AM
Priyanka JainPosted Aug 6, 2019, 10:03 AM