private void Form4_Load(object sender, EventArgs e) { db_ppl Connstring = new db_ppl(); DataTable dt = Connstring.SqlDataTable(@"SELECT * FROM [PPLDEV].[hrd].[Employee]"); pplDataGridView1.DataSource = dt; }
private void Form8_Load(object sender, EventArgs e) { db_ppl Connstring = new db_ppl(); DataTable dt = Connstring.SqlDataTable(@"SELECT * FROM [PPLDEV].[dbo].[Users]"); this.pplDataNavigation1.Datatable = dt; }