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

Column Freezing

Thread ID:

Created:

Updated:

Platform:

Replies:

52189 Nov 23,2006 09:55 AM UTC Nov 24,2006 06:00 AM UTC Windows Forms 1
loading
Tags: GridControl
Tannearu Hazarathaiah Gupta
Asked On November 23, 2006 09:55 AM UTC

HI,

If a column that is currently 'frozen' is dragged to the right of a column is not frozen. Then the column that is being dragged will no longer be frozen. If a column that is currently not frozen is dragged to the left of a column that is frozen, then that column should be frozen.

Please resolve the problem ASAP.

Regards
Tannearu Hazarathaiah

Administrator [Syncfusion]
Replied On November 24, 2006 06:00 AM UTC

Hi Tannearu,

You can handle the QueryAllowDragColumnHeader event and change the frozen column count. Here is a code snippet to show this.

private void gridDataBoundGrid1_QueryAllowDragColumnHeader(object sender, GridQueryDragColumnHeaderEventArgs e)
{
if( e.Reason == GridQueryDragColumnHeaderReason.MouseUp)
{
int fColCount = e.Grid.Model.Cols.FrozenCount;
if( !(e.Column <= fColCount && e.InsertBeforeColumn <= fColCount ) )
{
e.Grid.Model.Cols.FrozenCount = e.InsertBeforeColumn;
}
}
}

Sample : GDBGDragColumnHeader.zip

Best Regards,
Haneef

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

;