Custom drawing based on data values for a row in DevExpress PivotGridControl 9.1
I'm trying to make some kind of custom drawing in the row headers in a PivotGridControl in version 9.1. In 8.2, I could use CreateDrillDownDataSource on the FieldCellViewInfo property for an event for custom painting. In 9.1, this method does not exist.
The code I used in 8.2 looks like this. Called from the CustomDrawFieldValue event handler.
PropertyInfo propertyInfo = typeof(PivotCustomDrawFieldValueEventArgs).GetProperty("FieldCellViewInfo", BindingFlags.NonPublic | BindingFlags.Instance);
var fieldCellViewInfo = (PivotFieldsAreaCellViewInfo) propertyInfo.GetValue(args, null);
foreach (PivotDrillDownDataRow dataRow in fieldCellViewInfo.CreateDrillDownDataSource())
{
if (pivotGrid.DataViewInfo.ListSource.Count > dataRow.ListSourceRowIndex)
{
yield return (T) pivotGrid.DataViewInfo.ListSource[dataRow.ListSourceRowIndex];
}
}
As a result of this, a marker modified by the Row in the grid is used in every row header that has data changed. I was hoping 9.1 would have a way to do this without having to use private API calls like we do in 8.2
+1
a source to share
No one has answered this question yet
Check out similar questions: