Class GroupColumnDescription
Represents a class for that contains the grouping information like group column's name and converter based on which grouping for a column is processed in a SfDataGrid.
Inheritance
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.iOS.dll
Syntax
public class GroupColumnDescription : Object
Constructors
GroupColumnDescription()
Initializes a new instance of the GroupColumnDescription class.
Declaration
public GroupColumnDescription()
Properties
ColumnName
Gets or sets the column name for grouping. This property represents the MappingName of the column which should be grouped.
Declaration
public string ColumnName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The column name for grouping. |
Examples
dataGrid.GroupColumnDescriptions.Add (new GroupColumnDescription () {
ColumnName = "CustomerID",
});
See Also
Comparer
Gets or sets the comparer for the apply grouping based on custom logic.
Declaration
public IComparer<object> Comparer { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IComparer<System.Object> | The comparer for apply grouping based on custom logic. The default value is null. |
Converter
Gets or sets the converter for grouping. This property is used when the user needs to group the column with their custom logic. The user must assign the converter class implementing the IValueConverter to this property.
Declaration
public IValueConverter Converter { get; set; }
Property Value
Type | Description |
---|---|
IValueConverter | The converter for grouping. |
Remarks
SfDataGrid allows you to group a column based on custom logic when the standard grouping techniques do not meet the requirements. When the user wants to apply grouping to the column based on his custom logic, he needs to the write the converter class implementing the IValueConverter and assign it to this property.
Examples
dataGrid.GroupColumnDescriptions.Add (new GroupColumnDescription () {
ColumnName = "CustomerID",
Converter = new GroupConverter()
});
//GroupConverter.cs
public class GroupConverter : IValueConverter
{
}