DataGridViewColumnGroup
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Represents a group of column headers in a DataGridView.
- C#
- VB.NET
public class DataGridViewColumnGroup : Component
Public Class DataGridViewColumnGroup
Inherits 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
DataGridViewColumnGroup()
Initializes a new instance of DataGridViewColumnGroup.
DataGridViewColumnGroup(text)
Initializes a column group with the specified text.
| Name | Type | Description |
|---|---|---|
| text | String | The text displayed in the group header. |
Properties
BackColor
Color: Gets or sets the background color. An empty color inherits the grid's header color. (Default: Color [Empty])
DataGridView
DataGridView: Returns the grid that owns this group.
ForeColor
Color: Gets or sets the foreground color. An empty color inherits the grid's header color. (Default: Color [Empty])
Image
Image: Gets or sets the image displayed in the group header.
ImageSource
String: Gets or sets the theme name or URL of the image displayed in the group header.
Index
Int32: Returns the index in the grid's Groups collection, or -1 when detached.
Name
String: Gets or sets the name of the group. (Default: "")
Parent
DataGridViewColumnGroup: Gets or sets the parent group. A null value identifies a top-level group. (Default: null)
Text
String: Gets or sets the text displayed in the group header. (Default: "")
Methods
Dispose(disposing)
Removes the group from its grid and releases its resources.
| Parameter | Type | Description |
|---|---|---|
| disposing | Boolean | True to release managed resources. |
OnAddReferences(items)
Registers the parent descriptor before rendering a nested group.
| Parameter | Type | Description |
|---|---|---|
| items | IList | The referenced components. |
OnWebRender(config)
Renders the column group descriptor.
| Parameter | Type | Description |
|---|---|---|
| config | Object | The client component configuration. |
Update()
Updates the group header on the client.
Implements
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| IWisejComponent | All wisej components implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |