private void PonudeGrid_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DetaljiPonude frm = new DetaljiPonude(Convert.ToInt32(PonudeGrid.SelectedRows[0].Cells[0].Value));

            frm.ShowDialog();
            BindGrid();
        }
 private void DetaljiBtn_Click(object sender, EventArgs e)
 {
     if (PonudeGrid.SelectedRows.Count == 0)
     {
         MessageBox.Show("Morate izabrati ponudu");
     }
     else
     {
         DetaljiPonude frm = new DetaljiPonude(Convert.ToInt32(PonudeGrid.SelectedRows[0].Cells[0].Value));
         frm.ShowDialog();
         BindGrid();
     }
 }