Skip to main content
Version: 4.2

DataGridViewColumnGroup

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Represents a group of column headers in a DataGridView.

public class DataGridViewColumnGroup : Component

Derives from or implements Component.

  • Name Gets or sets the name of the group.
  • Text Gets or sets the text displayed in the group header.
  • Parent Gets or sets the parent group. A null value identifies a top-level group.

Constructors​

Instance member DataGridViewColumnGroup()​

Initializes a new instance of DataGridViewColumnGroup.

Instance member DataGridViewColumnGroup(text)​

Initializes a column group with the specified text.

NameTypeDescription
textStringThe text displayed in the group header.

Properties​

Instance member BackColor​

Color: Gets or sets the background color. An empty color inherits the grid's header color. (Default: Color [Empty])

Instance member DataGridView​

DataGridView: Returns the grid that owns this group.

Instance member ForeColor​

Color: Gets or sets the foreground color. An empty color inherits the grid's header color. (Default: Color [Empty])

Instance member Image​

Image: Gets or sets the image displayed in the group header.

Instance member ImageSource​

String: Gets or sets the theme name or URL of the image displayed in the group header.

Instance member Index​

Int32: Returns the index in the grid's Groups collection, or -1 when detached.

Instance member Name​

String: Gets or sets the name of the group. (Default: "")

Instance member Parent​

DataGridViewColumnGroup: Gets or sets the parent group. A null value identifies a top-level group. (Default: null)

Instance member Text​

String: Gets or sets the text displayed in the group header. (Default: "")

Methods​

Protected member Dispose(disposing)​

Removes the group from its grid and releases its resources.

ParameterTypeDescription
disposingBooleanTrue to release managed resources.

Protected member OnAddReferences(items)​

Registers the parent descriptor before rendering a nested group.

ParameterTypeDescription
itemsIListThe referenced components.

Protected member OnWebRender(config)​

Renders the column group descriptor.

ParameterTypeDescription
configObjectThe client component configuration.

Instance member Update()​

Updates the group header on the client.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.