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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

refreshing grid background

Thread ID:





14630 Jun 1,2004 02:38 PM UTC Jun 2,2004 07:31 AM UTC WinForms 3
Tags: GridControl
Terry Foster
Asked On June 1, 2004 02:38 PM UTC

Sorry to bug you guys about this - could have sworn I read this somewhere, but can''t seem to find it. How can I refresh the area immediate right of the last column and below the last row? I''m running into a situation with my virtual grid where my Excel-like selection frame is leaving some residual painting in this area after I move the selection. Thanks in advance, Terry

Administrator [Syncfusion]
Replied On June 1, 2004 03:49 PM UTC

Try setting grid.SmoothControlResize = false to see if that takes care of the problem you are seeing.

Terry Foster
Replied On June 1, 2004 04:15 PM UTC

Nope - didn''t change anything. Actually, I''m seeing the problem all over the place, but I''m working around it by refreshing the affected cells using the RefreshRange method. However, it also happens on the grid''s background and I''m trying to remember the best way to refresh this area. Thanks, Terry

Administrator [Syncfusion]
Replied On June 2, 2004 07:31 AM UTC

To force a redraw on the grid''s client area that is not occupied by the grid cells, you can call grid.Invalidate passing in the rectangle you want to to refresh. To get the rectangles you want to refresh, try this code: Rectangle bottomRect = this.gridControl1.ViewLayout.RectangleBottomOfRow(this.gridControl1.ViewLayout.LastVisibleRow); Rectangle rightRect = this.gridControl1.ViewLayout.RectangleRightOfCol(this.gridControl1.ViewLayout.LastVisibleCol, GridCellSizeKind.ActualSize);


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