コード例 #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            //öğrenci güncelleme
            OgrenciGuncelleme ogrguncelleme = new OgrenciGuncelleme();

            ogrguncelleme.tc    = dataGridView1.SelectedRows[0].Cells["UyeTC"].Value.ToString();
            ogrguncelleme.ad    = dataGridView1.SelectedRows[0].Cells["UyeAd"].Value.ToString();
            ogrguncelleme.soyad = dataGridView1.SelectedRows[0].Cells["UyeSoyad"].Value.ToString();
            ogrguncelleme.no    = dataGridView1.SelectedRows[0].Cells["UyeNo"].Value.ToString();
            ogrguncelleme.tel   = dataGridView1.SelectedRows[0].Cells["UyeTel"].Value.ToString();
            ogrguncelleme.adres = dataGridView1.SelectedRows[0].Cells["UyeAdres"].Value.ToString();
            ogrguncelleme.ShowDialog();//öğrenci güncelleme formu açılır
        }
コード例 #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            //öğrenci güncelleme
            string            tc            = dataGridView1.SelectedRows[0].Cells["OgrenciTC"].Value.ToString();
            string            ad            = dataGridView1.SelectedRows[0].Cells["OgrenciAd"].Value.ToString();
            string            soyad         = dataGridView1.SelectedRows[0].Cells["OgrenciSoyad"].Value.ToString();
            string            no            = dataGridView1.SelectedRows[0].Cells["OgrenciNo"].Value.ToString();
            string            tel           = dataGridView1.SelectedRows[0].Cells["OgrenciTel"].Value.ToString();
            string            adres         = dataGridView1.SelectedRows[0].Cells["OgrenciAdres"].Value.ToString();
            OgrenciGuncelleme ogrguncelleme = new OgrenciGuncelleme();

            ogrguncelleme.tc    = tc;
            ogrguncelleme.ad    = ad;
            ogrguncelleme.soyad = soyad;
            ogrguncelleme.no    = no;
            ogrguncelleme.tel   = tel;
            ogrguncelleme.adres = adres;
            ogrguncelleme.ShowDialog();
        }