New to Telerik UI for WPFStart a free 30-day trial

Use Generic GroupDescriptor

Updated on Sep 24, 2025

This help article will show you how to create generic expression GroupDescriptors for RadGridView.

Generic GroupDescriptor

You can also group objects by the result of an equally complex operation:

Example 1: Create a generic GroupDescriptor.

C#
	var descriptor = new GroupDescriptor<Employee, int, int>
	{
	    GroupingExpression = e => e.Orders.Where(o => o.Details.Any(d => d.Product.ProductName.Contains("Syrup"))).Count(),
	    SortDirection = ListSortDirection.Ascending
	};

Then, add the defined GroupDescriptor to the GroupDescriptors collection of RadGridView.

For more information you can check the Grouping section.

See Also

In this article
Generic GroupDescriptorSee Also
Not finding the help you need?
Contact Support