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

Drag and Drop Columns

Thread ID:





58374 Mar 22,2007 11:30 PM UTC Mar 23,2007 05:38 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On March 22, 2007 11:30 PM UTC


I don't want user to be able to drag and drop the frozen columns. Also I don't want to allow them to drag and drop any columns over frozen columns.

How can I achieve the above functionality?


Administrator [Syncfusion]
Replied On March 23, 2007 05:38 PM UTC

Hi Amiya,

One way you can do this by handling the QueryAllowDragColumnHeader event and setting the e.AllowDrag property to False to prevent from moving the column header in a grid. Here is a code snippet

private void gridQueryAllowDragColumnHeader(object sender, GridQueryDragColumnHeaderEventArgs e)
if( e.Column > this.grid.Model.Cols.FrozenCount )
e.AllowDrag = false;

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