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. Image for the cookie policy date
close icon

Grap level of group

Hi I am using Syncfusion grouping grid , i am not able to grap level of group.

when i am draging group in group area at that time i wanted to capture level of group.


1 Reply

HA haneefm Syncfusion Team April 20, 2007 09:13 PM UTC

Hi Ashok,

You can handle the TableDescriptor.GroupedColumn.Changed event of the grid and use e.Index to get the level of the group. Here is a code snippet.

private void GroupedColumns_Changed(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
{
if( e.Action == Syncfusion.Collections.ListPropertyChangedType.Insert)
{ SortColumnDescriptor column = e.Item as SortColumnDescriptor;
Console.WriteLine( "Grouped column Index:::"+ e.Index );
}
}

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon