示例#1
0
        private void gridView2_DoubleClick(object sender, EventArgs e)
        {
            if (gridView1.FocusedRowHandle < 0)
            {
                return;
            }

            DataRow dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);

            frmKontaklar Kontaklar = new frmKontaklar(dr["pkFirma"].ToString());

            Kontaklar.ShowDialog();
        }
        private void btnKontak_Click(object sender, EventArgs e)
        {
            int i = gridView1.FocusedRowHandle;

            if (i < 0)
            {
                return;
            }

            DataRow dr       = gridView1.GetDataRow(i);
            string  _fkFirma = dr["pkFirma"].ToString();

            frmKontaklar kontaklar = new frmKontaklar(_fkFirma);

            kontaklar.ShowDialog();

            boskengetir();
        }