private void btnUpdate_Click(object sender, EventArgs e) { //ucita info int indexRow = dataGridView1.CurrentRow.Index; string ime = (string)dataGridView1[1, indexRow].Value; string prezime = (string)dataGridView1[2, indexRow].Value; prenos = DataProvider.GetZaposlen(ime, prezime); FormUpdateZaposleni fnz = new FormUpdateZaposleni(); fnz.Show(); ucitajZaposlene(); }
private void btnUpdate_Click(object sender, EventArgs e) // zaposleni { /* int indexRow = dataGridView1.CurrentRow.Index; * ime = dataGridView1[1, indexRow].Value.ToString(); * prezime = dataGridView1[2, indexRow].Value.ToString() ; * * FormUpdateZaposleni fuz = new FormUpdateZaposleni(); * fuz.Show();*/ //ucita info int indexRow = dataGridView2.CurrentRow.Index; string ime = (string)dataGridView2[1, indexRow].Value; string prezime = (string)dataGridView2[2, indexRow].Value; prenos = DataProvider.GetZaposlen(ime, prezime); FormUpdateZaposleni fnz = new FormUpdateZaposleni(); fnz.Show(); }