Problem is selection cahnged for images in datagrid...
- private void roba_uslugeDataGridView_SelectionChanged(object sender, EventArgs e)
- {
- if (roba_uslugeDataGridView.SelectedRows.Count > 0)
- {
- string id = roba_uslugeDataGridView.SelectedRows[0].Cells[0].Value.ToString();
- string sifra = roba_uslugeDataGridView.SelectedRows[0].Cells[1].Value.ToString();
- string naziv = roba_uslugeDataGridView.SelectedRows[0].Cells[2].Value.ToString();
- dataPictureBox.Image = null;
- idTextBox.Text = id;
- sifraTextBox.Text = sifra;
- imeTextBox.Text = naziv;
- byte[] img_arr = null;
- MemoryStream ms = new MemoryStream();
- dataPictureBox.Image.Save(ms, dataPictureBox.Image.RawFormat);
- img_arr = ms.GetBuffer();
- }
- }

Rafnas T PRank #280 · 8.8K reputationPosted Apr 6, 2018, 1:24 AM EDT
Rafnas T PRank #280 · 8.8K reputationPosted Apr 6, 2018, 12:34 AM EDT
Rafnas T PRank #280 · 8.8K reputationPosted Apr 6, 2018, 1:02 AM EDT
Rafnas T PRank #280 · 8.8K reputationPosted Apr 6, 2018, 1:10 AM EDT
Goran BibicRank #993 · 2K reputationPosted Apr 6, 2018, 12:40 AM EDT
Goran BibicRank #993 · 2K reputationPosted Apr 6, 2018, 1:07 AM EDT
Goran BibicRank #993 · 2K reputationPosted Apr 6, 2018, 1:12 AM EDT
Goran BibicRank #993 · 2K reputationPosted Apr 6, 2018, 1:16 AM EDT
Goran BibicRank #993 · 2K reputationPosted Apr 6, 2018, 1:27 AM EDT
Goran BibicRank #993 · 2K reputationPosted Apr 6, 2018, 1:32 AM EDT
Goran BibicRank #993 · 2K reputationPosted Apr 6, 2018, 1:42 AM EDT