5
Answers

I am facing Problem while binding the data to the gridview

Photo of Basha Shaik

Basha Shaik

7y
654
1
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)