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

frozen/hidden columns

Thread ID:

Created:

Updated:

Platform:

Replies:

23375 Jan 11,2005 02:01 PM UTC Jan 11,2005 02:36 PM UTC Windows Forms 1
loading
Tags: GridControl
Terry Foster
Asked On January 11, 2005 02:01 PM UTC

I''m noticing some interesting behavior in 3.0 and was hoping to get perhaps a small explanation of the methodology behind how frozen and hidden columns are supposed to interact with each other. I think I''m seeing some inconsistencies and need to know how I should proceed. If I create a default grid control on a form (10 columns) and then in code hide column 2 and make the frozen count 3, then I see 2 frozen columns - what I would expect. However, if I reverse the order - freeze, then hide - I only see one frozen column. I have tracked the reason for this down to a method in the GridModel class: internal void RaiseColsHiding(GridRowColHidingEventArgs e) { if (e.From <= this.Cols.FrozenCount) { this.Cols.FrozenCount = Math.Max(0, e.From - 1); } OnColsHiding(e); } Can you help me understand why the frozen count is being modified when hiding a column within the frozen range, but setting the frozen count doesn''t seem to care what columns are hidden? Thanks, Terry

Administrator [Syncfusion]
Replied On January 11, 2005 02:36 PM UTC

Hi Terry, This is a work around we put into our codebase for a problem with a lockup during column dragging when the first and last column was hidden. But you are right, the order how properties are set should not result in different outcome. We will have to investigate the original problem again and see if another fix can be found. In the meantime you should just keep in mind that the order in which these two properties are set affect the outcome. Stefan

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

;