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

Remove range with different heights

Thread ID:





22032 Dec 1,2004 07:23 PM UTC Dec 2,2004 06:21 PM UTC WinForms 5
Tags: GridControl
Administrator [Syncfusion]
Asked On December 1, 2004 07:23 PM UTC

When I tried to remove a single row using the RemoveRange function I encountered a problem when the row being removed is one row above a row that has a large height. When the specified row is removed, it is the height of the removed row that is used to reposition the remaining rows, which is incorrect. The same thing happens if the large height row is removed.

Administrator [Syncfusion]
Replied On December 1, 2004 09:59 PM UTC

I am not sure I understand what you are describing. Below is a little sample where row 2 and 4 have tall rowheights. It has a button that allows you to remove row 3. In, when you remove Row 3, you see the two tall rows adjacent to each other which is what I would expect. Do you want some other behavior or am I missing your point? WindowsApplication10_4437.zip

Administrator [Syncfusion]
Replied On December 2, 2004 05:03 PM UTC

I forgot to mention one important thing. If you set OptimizeInsertRemoveCells = true, you sample exhibits the same behavior as mine.

Administrator [Syncfusion]
Replied On December 2, 2004 05:09 PM UTC

I think you can work around this by calling grid.Refresh after the row has been removed. This is a bug we will try to get fixed.

Administrator [Syncfusion]
Replied On December 2, 2004 05:32 PM UTC

True, but that defeats the purpose of the OptimizeInsertRemoveCells. One followup. If I add an email address to the post, is that information public?

Administrator [Syncfusion]
Replied On December 2, 2004 06:21 PM UTC

You are correct, this does defeat the purpose. But you could try grid.RefreshRange on the deleted row inself to see if this would handle it without redrawing the whole grid. As far as the email address, I think not. But to err on the prudent side, if you do not want it exposed, then you probably better off not adding it.


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