private void button8_Click(object sender, EventArgs e) { if (vb_con != null) { vb_con.EmptyTable("Table1"); this.dataGridView1.DataSource = vb_con.SelectTable("Table1"); } }
protected void Button9_Click(object sender, EventArgs e) { SQL_vb_connector vb_con = new SQL_vb_connector(SqlConProp.domain, SqlConProp.database2, SqlConProp.login, SqlConProp.pass); vb_con.EmptyTable("Table1"); this.GridView1.DataSource = vb_con.SelectTable("Table1"); this.GridView1.DataBind(); this.GridView1.Visible = true; vb_con.Disconnect(); }