[]
Initializes a new instance of a GroupDescription.
public GroupDescription(string propertyName)
| Type | Name | Description |
|---|---|---|
| string | propertyName | Name of the property to group on. |
Initializes a new instance of a GroupDescription.
public GroupDescription(string propertyName, ListSortDirection? sortDirection)
| Type | Name | Description |
|---|---|---|
| string | propertyName | Name of the property to group on. |
| ListSortDirection? | sortDirection | Sort direction to apply within the group. Defaults to Ascending, may be set to null to group but not sort by this property. |
Initializes a new instance of a GroupDescription.
public GroupDescription(string propertyName, ListSortDirection? sortDirection, bool group)
| Type | Name | Description |
|---|---|---|
| string | propertyName | Name of the property to group on. |
| ListSortDirection? | sortDirection | Sort direction to apply within the group. Defaults to Ascending, may be set to null to group but not sort by this property. |
| bool | group | Whether to group by this property. Defaults to true, set to false if you want to sort but not group by this property. |