RA
Ramu
Syncfusion Team
July 25, 2006 11:10 PM UTC
Hi Sandy,
This can be done by handling the "GridGroupingControl.TableDescriptor.SortedColumns.Changed" event.This event is fired for both sorting and unsorting the columns in the column header.
You must add the code in the page_Init() or page_Load() method
[C#]
this.GridGroupingControl1.TableDescriptor.SortedColumns.Changed += new Syncfusion.Collections.ListPropertyChangedEventHandler(this.GridGroupingControl1_SortedColumnsChanged);
In SortedColumnsChanged event, you can perform the required changes based on the “ListPropertyChangedEventHandler” action
Sample code:
------------
[C#]
private void GridGroupingControl1_SortedColumnsChanged(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
{
…
…
switch (e.Action)
{
case ListPropertyChangedType.ItemChanged:
case ListPropertyChangedType.Add:
{
this.GridGroupingControl1.TableDescriptor.SortedColumns.Clear();
//Your code goes here....
}
}
}
Let me know if you have any questions.
Thanks,
Ramu.K