private void PivotEngine_PivotSchemaChanged(object sender, PivotSchemaChangedArgs e) { if (this.pivotGrid1.TableControl.Model != null && this.pivotGrid1.TableControl.Model.CoveredRanges != null) { this.pivotGrid1.TableControl.Model.CoveredRanges.Clear(); foreach (var range in this.pivotGrid1.PivotEngine.CoveredRanges) { this.pivotGrid1.TableControl.Model.CoveredRanges.Add(GridRangeInfo.Cells(range.Top + 1, range.Left + 1, range.Bottom + 1, range.Right + 1)); } } this.pivotGrid1.TableControl.InvalidateCells(); }
private void PivotEngine_PivotSchemaChanged(object sender, PivotSchemaChangedArgs e) { startIndex = DateTime.Now; AssociatedObject.Dispatcher.BeginInvoke(DispatcherPriority.SystemIdle, new Action(() => { if (!pivotGrid.IgnoreRefresh) { if (scrollViewer != null != null && scrollViewer.Content is TextBlock) { (scrollViewer.Content as TextBlock).Text = string.Empty; } CheckTime(startIndex, "Initial part done in"); ContinueLoadingAsynchonolously( pivotGrid.PivotEngine.IndexEngine, startIndex); if (scrollViewer != null != null && scrollViewer.Content is TextBlock) { (scrollViewer.Content as TextBlock).Text += "\n" + "The following data represent, number of rows loaded in on demand against the total number of rows. i.e, " + "\n" + "Number of rows loaded / Total number of rows"; } } })); }