The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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!
HAhaneefm Syncfusion Team 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 +"."); }