private void customImageButton2_Click(object sender, EventArgs e) { OrderEdit FormOrderEdit = new OrderEdit(0); FormOrderEdit.ShowDialog(this); this.vorderTableAdapter.Fill(this.garageDataSet.vorder); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { Int32 tekID; if (e.RowIndex >= 0) { if (this.dataGridView1.Rows[e.RowIndex].IsNewRow == false) { tekID = Convert.ToInt32(this.dataGridView1.Rows[e.RowIndex].Cells["idorderDataGridViewTextBoxColumn"].Value.ToString()); OrderEdit FormOrderEdit = new OrderEdit(tekID); FormOrderEdit.ShowDialog(this); this.vorderTableAdapter.Fill(this.garageDataSet.vorder); dataGridView1.CurrentCell = dataGridView1.Rows[e.RowIndex].Cells[0]; } } }