示例#1
0
        private void gvResult_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            //  btnSubmit_Click(sender, e);
            ViewForm f = new ViewForm(gvResult.SelectedRows[0].Cells["navyid"].Value.ToString());

            f.StartPosition = FormStartPosition.CenterParent;
            f.ShowDialog();
        }
示例#2
0
 private void gvResult_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         //  btnSubmit_Click(sender, e);
         ViewForm f = new ViewForm(gvResult.SelectedRows[0].Cells["navyid"].Value.ToString());
         f.StartPosition = FormStartPosition.CenterParent;
         f.ShowDialog();
         e.Handled = true;
     }
 }