Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
955
Editable Cells - when clicking the cell it shows the value 'Infragistics.Controls.Grids.PivotEditControl'
posted

Hi,

We're using Infragistics WPF v12.2 (sorry can't upgrade right now).

I'm making a measure editable by adding it in to the EditableMeasures collection when the measure it's added to the PivotGrid's measures collection.

private void MeasuresOnCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)

{
switch (e.Action)
{
case NotifyCollectionChangedAction.Add:
foreach (IMeasureViewModel mvm in e.NewItems)
{
if (mvm.Caption == "Locus" || mvm.Caption == "Cleanup")
{
PivotGrid.EditSettings.EditableMeasures.Add(mvm.Measure);
PivotGrid.DataSource.SetMeasureAggregator(mvm,AggregationHelper.GetDefaultAverageAggregator(typeof(double)));
}
}
break;
case NotifyCollectionChangedAction.Remove:
foreach (IMeasureViewModel mvm in e.OldItems)
{
PivotGrid.EditSettings.EditableMeasures.Remove(mvm.Measure);
}
break;

}
}

What am I missing?

Thanks.

Parents Reply Children
No Data