Beispiel #1
0
        void CellClick(DataGridView dgv_xmjg)
        {
            Form_findzd frm = new Form_findzd(str_tjlx, str_lclx);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                dgv_xmjg.CurrentCell.Value = frm.Str_bh;
            }
        }
Beispiel #2
0
 private void dgv_hsmx_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.ColumnIndex == 3 && e.Button == MouseButtons.Right)
     {
         Form_findzd frm = new Form_findzd("", "");
         if (frm.ShowDialog() == DialogResult.OK)
         {
             dgv_hsmx.CurrentCell.Value = frm.Str_bh;
         }
     }
 }