Пример #1
0
        private void pvgSICCapture_ShowingEditor(object sender, DevExpress.XtraPivotGrid.CancelPivotCellEditEventArgs e)
        {
            PivotGridControl Pivot = sender as PivotGridControl;

            if (e.RowValueType == PivotGridValueType.Value)
            {
                if (TheSelectedShiftNo.ToString() == "N")
                {
                    e.Cancel = true;
                }
            }
            else
            {
                e.Cancel = true;
            }
        }
Пример #2
0
        private void pvgSICCleaned_ShowingEditor(object sender, CancelPivotCellEditEventArgs e)
        {
            PivotGridControl Pivot = sender as PivotGridControl;

            if (e.RowValueType == PivotGridValueType.Value)
            {
                if (Pivot.GetFieldValue(colc_Type, e.RowIndex).ToString() == "Book FL")
                {
                    e.Cancel = true;
                }
                if (TheSelectedShiftNo.ToString() == "N")
                {
                    e.Cancel = true;
                }
                if (TheSelectedActivity == "1")
                {
                    e.Cancel = true;
                }
            }
            else
            {
                e.Cancel = true;
            }
        }