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.
Syncfusion Feedback

Sample use for OnRangeInserted and OnRangeDeleted

Thread ID:

Created:

Updated:

Platform:

Replies:

18894 Sep 13,2004 08:08 AM UTC Sep 13,2004 09:55 AM UTC Windows Forms 1
loading
Tags: GridControl
Rahul Johri
Asked On September 13, 2004 08:08 AM UTC

Hi, I came across a discussion on the forum to use OnRangeInserted and OnRangeDeleted to increase grid performance along with Scroll Window while inserting and deleting rows in virtual mode. Can you provide me some sample code on how should I go about using it. I looked for the same in SyncFusion samples, but was unable to get any. Thanks.

Administrator [Syncfusion]
Replied On September 13, 2004 09:55 AM UTC

In a GridControl that holds its own data, and in a GridDataBoundGrid, you can get this behavior just by setting the OptimizeInsertRemoveCells property. But in a virtual grid, you have to actually call ScrollWindow currently. Here is a sample that shows how to set the OptimizeInsertRemoveCells where its works to optimize removing rows. On the left of the sample screen, you will see a list ot rows that get redrawn as the result of deleting a row in one of the grids. The sample also shows you you can call scrollwindow in a virtual grid case to get a similar optimization. InsertDeleteSample_465.zip

CONFIRMATION

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.

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

;