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.
Unfortunately, activation email could not send to your email. Please try again.

Updating the grid instantaneously while scrolling?

Thread ID:





93353 Mar 10,2010 02:36 PM Mar 22,2010 10:22 PM Windows Forms 4
Tags: GridControl
Administrator [Syncfusion]
Asked On March 10, 2010 02:36 PM

How to make scroll bars work in such a way that the grid would be updated while user does the scrolling? Currently it updates only once when user releases the mouse button.


Nirmal Raja [Syncfusion]
Replied On March 11, 2010 01:42 PM


Thank you for your interest in Syncfusion product.

The virtual grid can be used to draw the cell when the user get the cell to visible, or any event that repaints the portion that gets visible. This is done by adding the data's from the data source through QueryCellInfo, which will be fired for each element in the grid only when it is painted, so to place data's in the cells while scrolling you can use the virtual grid which will be more effective. Please refer the sample from our sample browser in the following location:
{Installed location}:\Syncfusion\{version number}\Windows\Grid.Windows\Samples\2.0\Virtual Grid

Let me know if you have any queries.


Administrator [Syncfusion]
Replied On March 11, 2010 06:12 PM

Well, we already have a highly customized GridDataBoundGrid so converting it to a virtual grid is out of question. Anyway, that solution seems to be too heavy and invasive for such a trivial task, shouldn't it be an options like GridControlBase.VScrollBarBehavior { UpdateOnMouseMove | UpdateOnMouseUp } ? All modern grids have that kind of functionality, perhaps I just didn't find the needed property?

Administrator [Syncfusion]
Replied On March 11, 2010 06:16 PM

Just to clarify, all I want is for the grid to show the corresponding records while user moves the scrollbar (not when he releases the mouse button). The kind of behavior you'll find in Excel, Firefox or any other decent app that has scroll bars.

Nirmal Raja [Syncfusion]
Replied On March 22, 2010 10:22 PM


The VScrollBar and HScrollBar objects has a property called SupportsThumbTrack, which has to be set to true to have the GridDataBoundGrid to be updated when the scroll thumb track is moved.

Please refer the sample code below:
gridDataBoundGrid1.VScrollBar.SupportsThumbTrack = true;
gridDataBoundGrid1.HScrollBar.SupportsThumbTrack = true;

And also I have attached a sample in the below location that showcases the behavior:

Let me know if you have any queries.



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.

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.