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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column Freezing

Thread ID:





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


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.

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,


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