private void PivotGridControl1_CustomUnboundFieldData(object sender, CustomFieldDataEventArgs e) { switch (e.Field.UnboundFieldName) { case "COL_PROMEDIO": decimal unitPrice = Convert.ToDecimal(e.GetListSourceColumnValue(COL_VALOR2.ExpressionFieldName)); e.Value = unitPrice; break; } }
void pivotGridControl1_CustomUnboundFieldData(object sender, CustomFieldDataEventArgs e) { e.Value = 0; // we have two fake columns: Status and Trend }