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

This class extends the default table layout in RadGridView with column groups.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class ColumnGroupsViewDefinition : TableViewDefinition, IGridViewDefinition, IDisposable

Inheritance: objectTableViewDefinitionColumnGroupsViewDefinition

Implements: IDisposableIGridViewDefinition

Constructors

Initializes a new instance of the ColumnGroupsViewDefinition class.

C#
public ColumnGroupsViewDefinition()

Properties

Gets the collection containing column groups.

C#
[Browsable(true)]
public ColumnGroupCollection ColumnGroups { get; }

Gets or sets the view template.

C#
[Browsable(false)]
public GridViewTemplate ViewTemplate { get; }
Property Value:

The view template.

Methods

Creates the row layout.

C#
public override IGridRowLayout CreateRowLayout()
Returns:

IGridRowLayout

Overrides: TableViewDefinition.CreateRowLayout()

Creates the view UI element.

C#
public override IRowView CreateViewUIElement(GridViewInfo viewInfo)
Parameters:viewInfoGridViewInfo

The view info.

Returns:

IRowView

Overrides: TableViewDefinition.CreateViewUIElement(GridViewInfo)

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Finds the group.

C#
public GridViewColumnGroup FindGroup(GridViewColumn column)
Parameters:columnGridViewColumn

The column.

Returns:

GridViewColumnGroup

Gets all groups.

C#
public IEnumerable<GridViewColumnGroup> GetAllGroups()
Returns:

IEnumerable<GridViewColumnGroup>

C#
protected virtual void ProcessPinnedGroupsCore()