private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int rowIndex = e.RowIndex; if (rowIndex < 0) return; DataGridViewRow dgvr = dataGridView1.Rows[rowIndex]; int custVenId = Convert.ToInt32(dgvr.Cells["Id"].Value); BomOffer.BomOfferList bomOfferList = new BomOfferList(bomOfferType, custVenId); bomOfferList.ShowDialog(); }
private void tscbDisplayBomOffer_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 0) { return; } DataGridViewRow dgvr = dataGridView1.SelectedRows[0]; int custVenId = Convert.ToInt32(dgvr.Cells["Id"].Value); BomOffer.BomOfferList bomOfferList = new BomOfferList(isOffer, custVenId); bomOfferList.ShowDialog(); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int rowIndex = e.RowIndex; if (rowIndex < 0) { return; } DataGridViewRow dgvr = dataGridView1.Rows[rowIndex]; int custVenId = Convert.ToInt32(dgvr.Cells["Id"].Value); BomOffer.BomOfferList bomOfferList = new BomOfferList(isOffer, custVenId); bomOfferList.ShowDialog(); }
private void tscbDisplayBomOffer_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 0) return; DataGridViewRow dgvr = dataGridView1.SelectedRows[0]; int custVenId = Convert.ToInt32(dgvr.Cells["Id"].Value); BomOffer.BomOfferList bomOfferList = new BomOfferList(isOffer, custVenId); bomOfferList.ShowDialog(); }