As described in the Custom column/row values ( Show Field Values that are not present in the original data source ) ticket, PivotGridControl cannot display field values in row and column areas if these values are not represented in the underlying datasource. As a workaround you can add all required values to the original datosource or create a datasource wrapper that contains all required values on its level, and there is no need to modify original datasource.
This example illustrates how to create such a datasource wrapper. It is based on the How to create a data source wrapper that adds an empty item to the lookup list example.
To hide rows and columns with null field values, handle the CustomFieldValueCells event.
Question Comments
Added By: Pinaki Sen at: 5/26/2015 3:42:29 AM
How should we do it for a scenario wherein we need to pass on values for multiple fields?