con.Open(); TypedDataSet tds = new TypedDataSet(); cmd.ExecuteNonQuery(); DataTable dt; dt = tds.Tables[0]; dgvServer.DataSource = dt; dgvServer.Refresh(); con.Close();
TypedDataSet tds = new TypedDataSet(); SqlDataAdapter da=new SqlDataAdapter("Your Query"); da.fill(tds); DataTable dt; dt = tds.Tables[0]; dgvServer.DataSource = dt; dgvServer.Refresh();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)