There are about 11 new Group Interval modes that you can apply to the GroupColumn
such as Text, Alphabetical, Date, Month, ShortTime, NamePeriod and so on.
In this topic, you will learn how to apply Alphabetical and case sensitive group
interval.
To apply Alphabetical Group Interval
- Open WebGrid Designer.
- Click See all properties. Set GroupByBoxVisible
to True.
- Switch to Advanced tab. Expand RootTable and select
GroupColumns.
- Add a column. Set ColumnMember to ContactName,
GroupInterval to Alphabetical, SortOrder
to Ascending.
- Run the project. WebGrid will group ContactName column alphabetically.
To apply Case Sensitive Group
- Open WebGrid Designer.
- Click See all properties. Set AllowGrouping to Yes
and GroupByBoxVisible to True.
- Switch to Advanced tab. Expand RootTable and select
Columns.
- Select ContactTitle column and set CaseSensitiveGrouping
to No.
- Run the project. When ContactTitle column contains data like "Owner", "owner", "oWner",
WebGrid will ignore the case sensitive when you enable grouping. Therefore, WebGrid
will group them into 1, that is "Owner".