We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Strange drawing in grid.

Thread ID:





16302 Jul 12,2004 10:07 AM UTC Jul 12,2004 01:06 PM UTC WinForms 1
Tags: GridControl
Andrey Plinda
Asked On July 12, 2004 10:07 AM UTC

Hello! I have created sample, where occurs such problem. Sometimes after resizing grid columns or after sometime appear unwanted cells on unexisted columns (See StrangeDraw.zip). Where can be a problem? Best regards! RedrawGrid_7370.zip StrangeDraw_9866.zip

Administrator [Syncfusion]
Replied On July 12, 2004 01:06 PM UTC

You can only access the grid (or any other Windows Forms control) on the thread that created it. The m_OnUpdate handler is being called from nonUI threads, so you have to recall it on the UI thread that created the grid.
private void m_OnUpdate(Manager m)
	Int32 row = m_Managers.IndexOf(m) + 1;
		this.gridControl1.BeginInvoke(new OnUpdateDelegate(m_OnUpdate), new object[]{m});
	gridControl1.RefreshRange(GridRangeInfo.Cells(row, 1, row, 5));


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon