SqlConnection con = new SqlConnection("Data Source=RKMS-PC\\SQLEXPRESS;Initial Catalog=master;Integrated Security=True");
SqlCommand cmd= new SqlCommand();
SqlDataAdapter da = new SqlDataAdapter("select * FROM EMPDETAILS", con);
DataSet ds = new DataSet();
da.Fill(ds,"emp");
dispGridView1.DataSource = ds.Tables[0];
No comments:
Post a Comment