New to Telerik UI for WinFormsStart a free 30-day trial

Represents a column group in RadGridView with a ColumnGroupsViewDefinition. Each group can either have subgroups or rows which contain data columns.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
[TypeConverter(typeof(ExpandableObjectConverter))]
public class GridViewColumnGroup : INotifyPropertyChanged

Inheritance: objectGridViewColumnGroup

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the GridViewColumnGroup class.

C#
public GridViewColumnGroup()

Initializes a new instance of the GridViewColumnGroup class.

C#
public GridViewColumnGroup(string text, string name)
Parameters:textstring

The text displayed in the group.

namestring

The name of the group.

Initializes a new instance of the GridViewColumnGroup class.

C#
public GridViewColumnGroup(string text)
Parameters:textstring

The text displayed in the group.

Properties

Gets or sets value indicating whether the user can hide the group.

C#
public virtual bool AllowHide { get; set; }

Gets or sets value indicating whether the user can reorder the group using mouse.

C#
public virtual bool AllowReorder { get; set; }

Gets a ColumnGroupCollection collection containing the subgroups of the current group.

C#
public ColumnGroupCollection Groups { get; }

Gets or sets a value indicating whether the column group is pinned and cannot be moved from its location when a user scrolls horizontally. Only the root column groups can be pinned.

C#
public bool IsPinned { get; set; }

Gets whether the column group is suspended.

C#
public bool IsSuspended { get; }
Property Value:

The is suspended.

Gets or sets a value indicating whether the group is visible.

C#
public bool IsVisible { get; set; }

Gets or sets the name of the group.

C#
public string Name { get; set; }

Gets the parent column group.

C#
[Browsable(false)]
public GridViewColumnGroup Parent { get; }

Gets the ViewDefinition of the group. Has value only on root groups.

C#
[Browsable(false)]
public ColumnGroupsViewDefinition ParentViewDefinition { get; }

Gets or sets the pin position for the row. When the column is pinned, it cannot be moved from its location when a user scrolls horizontally.

C#
public PinnedColumnPosition PinPosition { get; set; }

Gets the root column group.

C#
[Browsable(false)]
public GridViewColumnGroup RootColumnGroup { get; }

Gets a ColumnGroupRowCollection collection containing the rows of the current group.

C#
public ColumnGroupRowCollection Rows { get; }

Gets or set the vertical span of the group (the height) in pixels.

C#
public int RowSpan { get; set; }

Gets or sets a value indicating whether group header is visible. Works only for top level groups.

C#
public bool ShowHeader { get; set; }
Property Value:

true if the group header is visible; otherwise, false.

Gets or sets the tag of the group.

C#
public object Tag { get; set; }

Gets or sets the column group text.

C#
public string Text { get; set; }

Gets or sets a value indicating whether the group will be visible in ColumnChooserElement.

C#
public virtual bool VisibleInColumnChooser { get; set; }
Remarks:

Use this property if you want to hide groups from the user.

Methods

Finds the GridViewTemplate which owns this group. The method will return non-null value only when the group has been added to a view definition hierarchy and the view definition has been set to a template.

C#
public GridViewTemplate FindTemplate()
Returns:

GridViewTemplate

C#
protected virtual void OnNotifyPropertyChanged(string propertyName)
Parameters:propertyNamestring

Resumes the notifications.

C#
public void ResumeNotifications()

Suspends the notifications.

C#
public void SuspendNotifications()

Events

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged