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

check if columns recordered

Thread ID:





68858 Oct 3,2007 08:29 PM UTC Oct 3,2007 09:00 PM UTC WinForms 1
Tags: GridControl
Asked On October 3, 2007 08:29 PM UTC


Is there an event that gets triggered or a boolean that gets set when the user reorders the columns by dragging them? (An event would be prefereable to a boolean.) Thanks!

haneefm [Syncfusion]
Replied On October 3, 2007 09:00 PM UTC

Hi Code1234,

Thank you for your interest in Syncfusion Products.

When you try to move columns by selecting them and then mousing down on the column header and dragging them is controlled by the AllowDragSelectedCols property. The Model.ColsMoved event will get triggered when you drag the selected columns by setting the AllowDragSelectedCols property to true. Below are the codes that shows this task.

this.gridControl1.Model.ColsMoved += new Syncfusion.Windows.Forms.Grid.GridRangeMovedEventHandler(Model_ColsMoved);
void Model_ColsMoved(object sender, Syncfusion.Windows.Forms.Grid.GridRangeMovedEventArgs e)
Console.WriteLine("Column is moved from the position "+ e.From + " to " + e.Target +".");

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

or the page will be automatically redirected to 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