private void Form2_Load(object sender, EventArgs e) { DBConnect.sqlcon = new SqlConnection(DBConnect.connectionstr); cbTables.DataSource = DBConnect.ListTables(); }
private void btnAccess_Click(object sender, EventArgs e) { dgvData.DataSource = DBConnect.getData("SELECT * FROM " + cbTables.Text); }
private void Form2_Load(object sender, EventArgs e) { cbTables.DataSource = DBConnect.ListTables(); }