Intersoft WebGrid Documentation
GroupInterval Property
See Also  Send Feedback
ISNet.WebUI.WebGrid Namespace > WebGridColumn 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 WebGridColumn
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

WebGrid.NET provides built-in Grouping capability which automatically handles rows grouping based on specified Columns' value. The Enterprise edition extends this feature by allowing the grouping to be performed on different Group Interval, instead of the Column's Value. The Group Interval has several modes that you can apply to the WebGridColumn, such as: Text, Value, Alphabetical, Date, Month, and so on. 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 feature works perfectly in any combinations of different modes specified in each level of GroupColumn object. For example, in Customers table you can have ContactName grouped with Alphabetical mode then followed by Country with Text mode, and so on.

Another improvement to the grouping feature is the ability to customize the GroupMode and GroupRowFormatString of each level of group columns. The GroupMode enables you to specify which level of group column that will be expanded or collapsed initially, and the GroupRowFormatString allows you to specify different string formatting for each level of the group columns.

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.