private void dataGridView_tabelle_CellClick(object sender, DataGridViewCellEventArgs e) { string tableName = dataGridView_tabelle.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString(); //adb.Settings.DebugMode = false; dataGridView_dettagli.DataSource = adb.All(tableName).dt; }
private void button_Alldati_Click(object sender, EventArgs e) { ADB_Result result = adb.All("citta"); object r = result.data.Row(2).Col(2); object w = result.data.Row(0).Col("nome"); MessageBox.Show("Tutti i dati, " + r.ToString() + " \n " + w.ToString()); result.data.Row(0).Col("nome", "jam"); result.data.Row(2, new ADB_Row(new string[] { "10", "ddd", "123" })); r = result.data.Row(2).Col(2); w = result.data.Row(0).Col("nome"); MessageBox.Show("Tutti i dati, " + r.ToString() + " \n " + w.ToString()); }
private void button_addView_Click(object sender, EventArgs e) { if (!adb.LowLevel.TableExist("vistaTest")) { //adb.AddView("vistaTest", "citta", "nome, abitanti"); adb.AddView("vistaTest", "citta", new string[] { "nome", "abitanti" }); MessageBox.Show("Vista aggiunta"); } else { MessageBox.Show("Vista già presente"); } dataGridView1.DataSource = adb.All("vistaTest").dt; }