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.
Hello,
When I''m moving a column to another place (from index 1 to 5) , I would like to be notified by an event.
I tried the event "GridGroupingControl.TableModel.ColsMoved", but this event is not fired at all.
How to do ?
I''m using Essential Gird 3.3
Thanks
ADAdministrator Syncfusion Team April 5, 2006 03:34 PM UTC
Hi Xavier,
You can use TableDescriptor.Columns.Changed event to get notified when the columns are moved. Please follow the code snippet.
//this.gridGroupingControl1.TableDescriptor.Columns.Changed += new Syncfusion.Collections.ListPropertyChangedEventHandler(Columns_Changed);
private void Columns_Changed(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
{
Console.WriteLine("ColsMoved");
}
Best regards,
Madhan
ADAdministrator Syncfusion Team November 8, 2006 11:12 PM UTC
I tried your suggestion but TableDescriptor.Columns.Changed didn't fire either. What other events can I use? I would also like to know the position of the columns what are moved. Thanks, FS
>Hi Xavier, > >You can use TableDescriptor.Columns.Changed event to get notified when the columns are moved. Please follow the code snippet. > >//this.gridGroupingControl1.TableDescriptor.Columns.Changed += new Syncfusion.Collections.ListPropertyChangedEventHandler(Columns_Changed); >private void Columns_Changed(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e) >{ > Console.WriteLine("ColsMoved"); >} > >Best regards, >Madhan
ADAdministrator Syncfusion Team November 10, 2006 07:07 AM UTC
Hi FS,
Please refer to the below forum thread for more details. http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=51585