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

Drag and Drop Columns

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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?

Thanks,
Amiya

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,
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

;