Class GroupColumnDescription
Represents a class that describes the grouping criterion.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class GroupColumnDescription
Constructors
GroupColumnDescription()
Declaration
public GroupColumnDescription()
Properties
ColumnName
Gets or sets the name of the column.
Declaration
public string ColumnName { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of the column. The default value is null. |
KeySelector
Gets or sets the KeySelector of the column.
Declaration
public Func<string, object, object> KeySelector { get; set; }
Property Value
Type |
---|
System.Func<System.String, System.Object, System.Object> |
SortGroupRecords
Gets or sets a value indicating whether to sort the inner records of group while using custom grouping.
Declaration
public bool SortGroupRecords { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | The default value is false. |
Remarks
By default, grouped columns records are not sorted as the values of all the records in one group will be same. So, only groups will be sorted based on group key. In custom grouping cases, grouped columns records value may differ. So in this case, you can sort the records of group by setting SortGroupRecords property to true.
Methods
ToString()
Overriden to return the string representation of the object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | Returns the string respresentation of the object. |