private void dataGridViewZavrsene_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { var nezavrseneDoubleClick = dataGridViewZavrsene.Rows[e.RowIndex].Cells[0].Value; frmNarudzbeDetalji frm = new frmNarudzbeDetalji(int.Parse(nezavrseneDoubleClick.ToString())); frm.Show(); }
private void DetaljiToolStripMenuItem_Click(object sender, EventArgs e) { if (Id != 0) { frmNarudzbeDetalji frm = new frmNarudzbeDetalji(Id); frm.Show(); } }
private void DataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e) { var objId = dataGridView2.Rows[e.RowIndex].Cells[0].Value; if (dataGridView2.Columns[e.ColumnIndex].Name == "Detalji") { frmNarudzbeDetalji form = new frmNarudzbeDetalji(int.Parse(objId.ToString())); form.Show(); } }
private void DgvNarudzbe_CellContentClick(object sender, DataGridViewCellEventArgs e) { var objId = dgvNarudzbe.Rows[e.RowIndex].Cells[0].Value; if (dgvNarudzbe.Columns[e.ColumnIndex].Name == "Detalji") { if (int.TryParse(objId.ToString(), out int id)) { frmNarudzbeDetalji form = new frmNarudzbeDetalji(id, this); form.Show(); } } }