Intersoft WebGrid Documentation
How-to: Customize Group Intervals
See Also Send comments on this topic.

Glossary Item Box

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

  1. Open WebGrid.NET Designer.
  2. Click See all properties. Set GroupByBoxVisible to True.
  3. Switch to Advanced tab. Expand RootTable and select GroupColumns.
  4. Add a column. Set ColumnMember to ContactName, GroupInterval to Alphabetical, SortOrder to Ascending.
  5. Run the project. WebGrid will group ContactName column alphabetically.

 

To apply Case Sensitive Group

  1. Open WebGrid.NET Designer.
  2. Click See all properties. Set AllowGrouping to Yes and GroupByBoxVisible to True
  3. Switch to Advanced tab. Expand RootTable and select Columns.
  4. Select ContactTitle column and set CaseSensitiveGrouping to No.
  5. 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".

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.