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

Sample use for OnRangeInserted and OnRangeDeleted

Thread ID:





18894 Sep 13,2004 08:08 AM UTC Sep 13,2004 09:55 AM UTC WinForms 1
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


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