示例#1
0
 private void gridView1_DoubleClick(object sender, EventArgs e)
 {
     if (gridView1.GetFocusedRow() != null)
     {
         var frm = new frmXeBaoDiDuongDai();
         frm.SetModel(gridView1.GetFocusedRow().As <XeDiDuongDai>());
         frm.ShowDialog();
     }
 }
示例#2
0
 private void gridView1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
 {
     if (e.KeyData == Keys.Enter)
     {
         if (gridView1.GetFocusedRow() != null)
         {
             var frm = new frmXeBaoDiDuongDai();
             frm.SetModel(gridView1.GetFocusedRow().As <XeDiDuongDai>());
             frm.ShowDialog();
         }
     }
 }