Beispiel #1
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            secilen = dataGridView1.SelectedCells[0].RowIndex;
            FrmOgrDuzenle fr = new FrmOgrDuzenle();

            fr.id        = dataGridView1.Rows[secilen].Cells[0].Value.ToString();
            fr.adi       = dataGridView1.Rows[secilen].Cells[1].Value.ToString();
            fr.soyadi    = dataGridView1.Rows[secilen].Cells[2].Value.ToString();
            fr.TC        = dataGridView1.Rows[secilen].Cells[3].Value.ToString();
            fr.telefon   = dataGridView1.Rows[secilen].Cells[4].Value.ToString();
            fr.dogum     = dataGridView1.Rows[secilen].Cells[5].Value.ToString();
            fr.bolum     = dataGridView1.Rows[secilen].Cells[6].Value.ToString();
            fr.email     = dataGridView1.Rows[secilen].Cells[7].Value.ToString();
            fr.odaNo     = dataGridView1.Rows[secilen].Cells[8].Value.ToString();
            fr.veliAd    = dataGridView1.Rows[secilen].Cells[9].Value.ToString();
            fr.VeliTel   = dataGridView1.Rows[secilen].Cells[10].Value.ToString();
            fr.VeliAdres = dataGridView1.Rows[secilen].Cells[11].Value.ToString();
            fr.Show();
        }
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            secilen = dataGridView1.SelectedCells[0].RowIndex;
            FrmOgrDuzenle fr = new FrmOgrDuzenle();

            fr.id      = dataGridView1.Rows[secilen].Cells[0].Value.ToString();
            fr.ad      = dataGridView1.Rows[secilen].Cells[1].Value.ToString();
            fr.soyad   = dataGridView1.Rows[secilen].Cells[2].Value.ToString();
            fr.TC      = dataGridView1.Rows[secilen].Cells[3].Value.ToString();
            fr.telefon = dataGridView1.Rows[secilen].Cells[4].Value.ToString();
            fr.dogum   = dataGridView1.Rows[secilen].Cells[5].Value.ToString();
            fr.bolum   = dataGridView1.Rows[secilen].Cells[6].Value.ToString();
            fr.mail    = dataGridView1.Rows[secilen].Cells[7].Value.ToString();
            fr.odano   = dataGridView1.Rows[secilen].Cells[8].Value.ToString();
            fr.veliad  = dataGridView1.Rows[secilen].Cells[9].Value.ToString();
            fr.velitel = dataGridView1.Rows[secilen].Cells[10].Value.ToString();
            fr.adres   = dataGridView1.Rows[secilen].Cells[11].Value.ToString();

            fr.Show();
            this.ogrenciTableAdapter.Fill(this.yurtKayitDataSet4.Ogrenci);
        }
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            // Seçilen öğrencileri Öğrenci Düzenle formunun textlerine aktarma

            secilen = Convert.ToInt32(dataGridView1.SelectedCells[0].Value);

            FrmOgrDuzenle fr = new FrmOgrDuzenle();

            fr.id = secilen.ToString();
            //  fr.id = dataGridView1.SelectedCells[1].Value.ToString();
            fr.ad      = dataGridView1.SelectedCells[1].Value.ToString();
            fr.soyad   = dataGridView1.SelectedCells[2].Value.ToString();
            fr.TC      = dataGridView1.SelectedCells[3].Value.ToString();
            fr.telefon = dataGridView1.SelectedCells[4].Value.ToString();
            fr.dogum   = dataGridView1.SelectedCells[5].Value.ToString();
            fr.bolum   = dataGridView1.SelectedCells[6].Value.ToString();
            fr.mail    = dataGridView1.SelectedCells[7].Value.ToString();
            fr.odano   = dataGridView1.SelectedCells[8].Value.ToString();
            fr.veliad  = dataGridView1.SelectedCells[9].Value.ToString();
            fr.velitel = dataGridView1.SelectedCells[10].Value.ToString();
            fr.adres   = dataGridView1.SelectedCells[11].Value.ToString();
            fr.Show();
        }