Beispiel #1
0
        // firmalar icin mail adresi alma
        private void gridView2_DoubleClick(object sender, EventArgs e)
        {
            FrmMail frm = new FrmMail();
            // firmalarda sectigimiz satiri bulma islemi
            DataRow dr = gridView2.GetDataRow(gridView2.FocusedRowHandle);

            if (dr != null)
            {
                frm.mail = dr["MAIL"].ToString();
            }
            frm.Show();
        }
Beispiel #2
0
        // musteriler icin mail adresi alma
        private void gridView1_DoubleClick(object sender, EventArgs e)
        {
            FrmMail frm = new FrmMail();
            // musterilerde sectigimiz satirim degerini dr`ye atiycak
            DataRow dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);

            if (dr != null)
            {
                frm.mail = dr["MAIL"].ToString(); // dr icindeki adresi stringe cevirip gostericek
            }

            frm.Show();
        }