Grid is in updating mode

Hi,

I''m using BeginUpdate and EndUpdate and changing cell values in between. However sporadically I get the following error:

Exception Source: Syncfusion.Grid.Windows Exception Type: System.InvalidProgramException Exception Message: Grid is in updating mode Exception Target Site: OnPaint

---- Stack Trace ----
Syncfusion.Windows.Forms.Grid.GridControlBase.OnPaint(pe As PaintEventArgs)
GlobalNoticeboard.exe: N 00730
System.Windows.Forms.Control.PaintWithErrorHandling(e As PaintEventArgs, layer As Int16, disposeEventArgs As Boolean)
GlobalNoticeboard.exe: N 00196
System.Windows.Forms.Control.WmPaint(m As Message&)
GlobalNoticeboard.exe: N 00500
System.Windows.Forms.Control.WndProc(m As Message&)
GlobalNoticeboard.exe: N 00656
Syncfusion.Windows.Forms.ScrollControl.WndProc(msg As Message&)
GlobalNoticeboard.exe: N 00613
Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(msg As Message&)
GlobalNoticeboard.exe: N 00328
System.Windows.Forms.ControlNativeWindow.OnMessage(m As Message&)
GlobalNoticeboard.exe: N 00010
System.Windows.Forms.ControlNativeWindow.WndProc(m As Message&)
GlobalNoticeboard.exe: N 00187
System.Windows.Forms.NativeWindow.Callback(hWnd As IntPtr, msg As Int32, wparam As IntPtr, lparam As IntPtr)
GlobalNoticeboard.exe: N 00047

Strangely the frequency with which this error occurs increases if I hide the column header row.

Any ideas?

Regards,
Miguel

1 Reply

AD Administrator Syncfusion Team September 22, 2006 11:54 AM UTC

Hi Miguel,

The error which you have mentioned, is an indication of threading issues.

Are there multiple threads involved in your appilcation? If so, please check the Knowledge Base(KB) article link below.

http://64.78.15.37/support/kb/grid/Default.aspx?ToDo=view&questId=78

Intermittant errors can be indications of threading issues. Any calls into the grid must be done on the thread that creates it, and you can use grid.InvokeRequired to check for this.

http://64.78.15.37/support/user/uploads/loaddatainbackgroundthread632254810888767829.zip

Let us know if you have any other questions.

Thanks,
Haneef

Loader.
Up arrow icon