Intersoft WebGrid Documentation
AllowGrouping Property
See Also  Example Send Feedback
ISNet.WebUI.WebGrid Namespace > LayoutSet Class : AllowGrouping Property






Specify whether grouping is allowed in client's UI.

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute("Specify whether grouping is allowed in client's UI.")>
<ISNet.Serialization.XmlSerializableAttribute()>
<ISNet.Serialization.BinarySerializableAttribute()>
<NotifyParentPropertyAttribute(True)>
<DefaultValueAttribute()>
Public Property AllowGrouping As Grouping
Visual Basic (Usage)Copy Code
Dim instance As LayoutSet
Dim value As Grouping
 
instance.AllowGrouping = value
 
value = instance.AllowGrouping
C# 
[DescriptionAttribute("Specify whether grouping is allowed in client's UI.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
public Grouping AllowGrouping {get; set;}
Delphi 
public read-write property AllowGrouping: Grouping; 
JScript 
DescriptionAttribute("Specify whether grouping is allowed in client's UI.")
ISNet.Serialization.XmlSerializableAttribute()
ISNet.Serialization.BinarySerializableAttribute()
NotifyParentPropertyAttribute()
DefaultValueAttribute()
public function get,set AllowGrouping : Grouping
Managed Extensions for C++ 
[DescriptionAttribute("Specify whether grouping is allowed in client's UI.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
public: __property Grouping get_AllowGrouping();
public: __property void set_AllowGrouping( 
   Grouping value
);
C++/CLI 
[DescriptionAttribute("Specify whether grouping is allowed in client's UI.")]
[ISNet.Serialization.XmlSerializableAttribute()]
[ISNet.Serialization.BinarySerializableAttribute()]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
public:
property Grouping AllowGrouping {
   Grouping get();
   void set (    Grouping value);
}

Example

The sample code below shows you how to set the AllowGrouping property programmatically.
C#Copy Code
private void WebGrid1_InitializeLayout(object sender, ISNet.WebUI.WebGrid.LayoutEventArgs e)
{
        e.Layout.AllowGrouping = ISNet.WebUI.WebGrid.Grouping.Yes;
}

Remarks

A column can be grouped by right clicking on the column header and clicking on Group By This Field. Alternatively, users can drag the column and drop it in GroupBox. On the other hand, Grouped column can be ungrouped by right clicking on the column header and clicking on Ungroup By This Field. Users can also ungroup a column by dragging the group column's object and drop it in Table's column headers or just drop it in any Grid's area to remove the column from view.

Please note that when WebGrid is operating in Unbound mode, all data-bound features including Grouping should not be enabled.

Requirements

 

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.