void pivotGridControl_ShowingEditor(object sender, CancelPivotCellEditEventArgs e) { var pivotGridControl = ((PivotGridControl)sender); var cellInfo = pivotGridControl.Cells.GetFocusedCellInfo(); if (cellInfo.RowValueType == PivotGridValueType.GrandTotal || cellInfo.ColumnValueType == PivotGridValueType.GrandTotal) { e.Cancel = true; } }
void _pivotGridControl_ShowingEditor(object sender, CancelPivotCellEditEventArgs e) { PivotCellEventArgs cellInfo = GetFocusedCellInfo(sender as PivotGridControl); if (cellInfo.RowValueType == PivotGridValueType.GrandTotal || cellInfo.ColumnValueType == PivotGridValueType.GrandTotal) { e.Cancel = true; } }
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; } }
void _pivotGridControl_ShowingEditor(object sender, CancelPivotCellEditEventArgs e) { PivotCellEventArgs cellInfo = GetFocusedCellInfo(sender as PivotGridControl); if (cellInfo.RowValueType == PivotGridValueType.GrandTotal || cellInfo.ColumnValueType == PivotGridValueType.GrandTotal) e.Cancel = true; }