Beispiel #1
0
        private void gridControl1_DoubleClick(object sender, EventArgs e)
        {
            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hi =
                gridView1.CalcHitInfo((sender as System.Windows.Forms.Control).PointToClient(System.Windows.Forms.Control.MousePosition));
            DataRow FocusRow;

            if (hi.RowHandle >= 0)
            {
                FocusRow = gridView1.GetDataRow(hi.RowHandle);
                ACMS.ACMSStaff.WorkFlow.MyCustomEditForm frm = new ACMS.ACMSStaff.WorkFlow.MyCustomEditForm((int)FocusRow.ItemArray[0], nDepartment);
                frm.Show();
            }
            else if (gridView5.FocusedRowHandle >= 0)
            {
                FocusRow = gridView1.GetDataRow(gridView5.FocusedRowHandle);
                ACMS.ACMSStaff.WorkFlow.MyCustomEditForm frm = new ACMS.ACMSStaff.WorkFlow.MyCustomEditForm((int)FocusRow.ItemArray[0], nDepartment);
                frm.Show();
            }
        }
Beispiel #2
0
 private void gridControl1_DoubleClick(object sender, EventArgs e)
 {
     DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hi =
           gridView1.CalcHitInfo((sender as System.Windows.Forms.Control).PointToClient(System.Windows.Forms.Control.MousePosition));
     DataRow FocusRow;
     if (hi.RowHandle >= 0)
     {
         FocusRow = gridView1.GetDataRow(hi.RowHandle);
         ACMS.ACMSStaff.WorkFlow.MyCustomEditForm frm = new ACMS.ACMSStaff.WorkFlow.MyCustomEditForm((int)FocusRow.ItemArray[0], nDepartment);
         frm.Show();
     }
     else if (gridView5.FocusedRowHandle >= 0)
     {
         FocusRow = gridView1.GetDataRow(gridView5.FocusedRowHandle);
         ACMS.ACMSStaff.WorkFlow.MyCustomEditForm frm = new ACMS.ACMSStaff.WorkFlow.MyCustomEditForm((int)FocusRow.ItemArray[0], nDepartment);
         frm.Show();
     }
 }