private void button11_Click(object sender, EventArgs e) { if (odbc_con != null) { Random random = new Random(); odbc_con.UpdateTable("Table1", "name", random.Next(100)); this.dataGridView1.DataSource = odbc_con.SelectTable("Table1"); } }
private void button9_Click(object sender, EventArgs e) { /* * Need to add ODBC DSN entry in... * C:\Windows\System32\odbcad32.exe * C:\Windows\SysWOW64\odbcad32.exe [User/System DSN] // under 64-bit OS *** THIS *** * ODBC Name=DSN */ if (odbc_con == null) { odbc_con = new SQL_odbc_connector("VirtualBoxVM", "Administrator", "Pa$$word"); this.dataGridView1.DataSource = odbc_con.SelectTable("Table1"); } }