private void button1_Click(object sender, EventArgs e) { DataTable tabla4 = new DataTable(); BBDDTableAdapters.AvionTableAdapter aviones2 = new BBDDTableAdapters.AvionTableAdapter(); tabla4 = aviones2.IdAvion(int.Parse(textBox1.Text)); avionDataGridView.DataSource = tabla4; }
private void button1_Click(object sender, EventArgs e) { DataTable tabla2 = new DataTable(); BBDDTableAdapters.AvionTableAdapter aviones2 = new BBDDTableAdapters.AvionTableAdapter(); tabla2 = aviones2.PaisOrigen(textBox1.Text); avionDataGridView.DataSource = tabla2; }
private void Consultar_Click(object sender, EventArgs e) { DataTable tabla3 = new DataTable(); BBDDTableAdapters.AvionTableAdapter aviones2 = new BBDDTableAdapters.AvionTableAdapter(); tabla3 = aviones2.PaisDestino(textBox1.Text); avionDataGridView.DataSource = tabla3; }