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.

Remove range with different heights

Thread ID:

Created:

Updated:

Platform:

Replies:

22032 Dec 1,2004 02:23 PM Dec 2,2004 01:21 PM Windows Forms 5
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On December 1, 2004 02:23 PM

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 04:59 PM

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 2.1.0.9, 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 12:03 PM

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 12:09 PM

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 12:32 PM

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 01:21 PM

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.

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.

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.

;