Basha Shaik

Basha Shaik

  • NA
  • 31
  • 1.9k

I am facing Problem while binding the data to the gridview

May 15 2018 6:23 AM
SqlCommand cmd=new SqlCommand("select*from emp",conn); SqlDataAdapter da=new SqlDataAdapter(cmd); Dataset ds=new Dataset(); da.Fill(ds,"empnew"); Gridemp.Datasource=ds.Tables["empnew"]; Gridemp.Databind();

Answers (5)