private void güncelleToolStripMenuItem_Click(object sender, EventArgs e) { int kullaniciid = Convert.ToInt32(dataGridView1.CurrentRow.Cells["KULLANICI NO"].Value); formKullaniciGuncelle a = new formKullaniciGuncelle(); a.k_id = kullaniciid; a.ShowDialog(); kapat(); }
private void btnGuncelle_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow.Cells["KULLANICI NO"].Value != null) { int kullaniciid = Convert.ToInt32(dataGridView1.CurrentRow.Cells["KULLANICI NO"].Value); formKullaniciGuncelle a = new formKullaniciGuncelle(); a.k_id = kullaniciid; a.ShowDialog(); } else { MessageBox.Show("Lütfen Bir Kullanıcı Seçiniz"); } kapat(); }