Intersoft WebGrid Documentation
GroupInterval Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGridGroup Class : GroupInterval Property






Gets or sets a value that determines how groups should be calculated.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Gets or sets a value that determines how groups should be calculated.")>
<ISNet.Serialization.XmlSerializableAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<DefaultValueAttribute()>
Public Property GroupInterval As GroupInterval
Visual Basic (Usage)Copy Code
Dim instance As WebGridGroup
Dim value As GroupInterval
 
instance.GroupInterval = value
 
value = instance.GroupInterval
C# 
[DescriptionAttribute("Gets or sets a value that determines how groups should be calculated.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
public GroupInterval GroupInterval {get; set;}
Delphi 
public read-write property GroupInterval: GroupInterval; 
JScript 
DescriptionAttribute("Gets or sets a value that determines how groups should be calculated.")
ISNet.Serialization.XmlSerializableAttribute()
ISNet.Serialization.BinarySerializableAttribute()
NotifyParentPropertyAttribute()
DefaultValueAttribute()
public function get,set GroupInterval : GroupInterval
Managed Extensions for C++ 
[DescriptionAttribute("Gets or sets a value that determines how groups should be calculated.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
public: __property GroupInterval get_GroupInterval();
public: __property void set_GroupInterval( 
   GroupInterval value
);
C++/CLI 
[DescriptionAttribute("Gets or sets a value that determines how groups should be calculated.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
public:
property GroupInterval GroupInterval {
   GroupInterval get();
   void set (    GroupInterval value);
}

Remarks

By default, all groups are calculated based on cell's value. If this property is set to Default then it will use the settings in the WebGridColumn's GroupInterval.

WebGrid.NET Enterprise allows you to group data rows with a range of predefined group interval such as Alphabetical, Date, Month, ShortTime, Year and so on. As always, you can apply these GroupIntervals visually in the designer and doesn't require you to write any codes in order to make it work. This greatly increases your application's value by delivering better grouping capability to end users while saving development time with its easy to use designer.

GroupInterval works perfectly in any combinations of different modes specified in each level of GroupColumn object. For instance, you can have ContactName grouped with Alphabetical mode then followed by Country with Text mode, and so on. Technically, the WebGrid.NET internal system automatically sorts each of the specified mode and perform the grouping in incremental method resulting in excellent performance.

Note that Alphabetical mode is only allowed for string data type.

For more information you can read Walkthrough: Using Group Intervals in WebGrid.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.