Resumes notification processing after a preceding call to
SuspendNotificationProcessing.
SuspendNotificationProcessing and ResumeNotificationProcessing can be used to temporarily suspend UltraCalcManager from processing value change notifications. Typical reason for doing this is for better efficiency. Every cell value change will cause a notification to be sent to the UltraCalcManager which in turn will process the notification. When a lot of values need to be changed in an UltraGrid for example, you can use these two methods to suspend this notification processing. ResumeNotificationProcessing method takes in a dirtyAllFormulas parameter. Passing in true here will cause all the formulas to be recalculated. You can pass in true or false based on whether you are modifying cells that are used as source of values in formulas or not. For example if you know that you are modifying cell values of a column that is not used in any formulas then you can pass false for the dirtyAllFormulas.
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Imports Infragistics.Win.CalcEngine
Imports Infragistics.Win.UltraWinCalcManager
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
Me.ultraCalcManager1.SuspendNotificationProcessing()
Dim i As Integer
For i = 0 To Me.ultraGrid1.Rows.Count - 1
Me.ultraGrid1.Rows(i).Cells(1).Value = i
Next
Me.ultraCalcManager1.ResumeNotificationProcessing(True)
End Sub
'Declaration
Public Sub ResumeNotificationProcessing( _
ByVal As Boolean _
)
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;
using Infragistics.Win.CalcEngine;
using Infragistics.Win.UltraWinCalcManager;
private void button1_Click(object sender, System.EventArgs e)
{
this.ultraCalcManager1.SuspendNotificationProcessing( );
for ( int i = 0; i < this.ultraGrid1.Rows.Count; i++ )
{
this.ultraGrid1.Rows[i].Cells[1].Value = i;
}
this.ultraCalcManager1.ResumeNotificationProcessing( true );
}
'Declaration
Public Sub ResumeNotificationProcessing( _
ByVal As Boolean _
)
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2