DataGridViewButtonColumn
Wisej.Web.DataGridViewButtonColumn
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Represents a DataGridView column that contains a collection of DataGridViewButtonCell cells.
Constructors
DataGridViewButtonColumn()
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F314832588-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MTHCfAYyBPycFG90wsw-4198400543%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3D060b281d-9363-48a1-a0f9-788ad1831e96&width=300&dpr=4&quality=100&sign=2218e05e&sv=1)
Initializes a new instance of the DataGridViewButtonColumn class to the default state.
DataGridViewButtonColumn(cellTemplate)
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F314832588-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MTHCfAYyBPycFG90wsw-4198400543%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3D060b281d-9363-48a1-a0f9-788ad1831e96&width=300&dpr=4&quality=100&sign=2218e05e&sv=1)
Initializes a new instance of the DataGridViewButtonColumn class to the default state.
Name | Type | Description |
---|---|---|
cellTemplate | An existing DataGridViewButtonCell to use as a template. |
Properties
CellTemplate
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F314832588-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MTHCfAYyBPycFG90wsw-4198400543%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3D060b281d-9363-48a1-a0f9-788ad1831e96&width=300&dpr=4&quality=100&sign=2218e05e&sv=1)
DataGridViewCell: Returns or sets the template used to model cell appearance.
Throws:
InvalidOperationException The type is null.
InvalidCastException The set type is not compatible with type DataGridViewButtonCell.
Text
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F314832588-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MTHCfAYyBPycFG90wsw-4198400543%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3D060b281d-9363-48a1-a0f9-788ad1831e96&width=300&dpr=4&quality=100&sign=2218e05e&sv=1)
String: Gets or sets the default text displayed on the button cell when UseColumnTextForButtonValue is true.
Throws:
InvalidOperationException When setting this property, the value of the CellTemplate property is null.
UseColumnTextForButtonValue
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F314832588-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MTHCfAYyBPycFG90wsw-4198400543%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3D060b281d-9363-48a1-a0f9-788ad1831e96&width=300&dpr=4&quality=100&sign=2218e05e&sv=1)
Boolean: Gets or sets a value indicating if the button in the cell uses the owning column's text instead of the value of the cell.
This value is inherited by all the cells in the column that do not specify a value for this property. Throws:
InvalidOperationException The property CellTemplate is null.
ValueType
![](https://docs.wisej.com/~gitbook/image?url=https%3A%2F%2F314832588-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MTHCfAYyBPycFG90wsw-4198400543%252Fuploads%252Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%252Finstance.png%3Falt%3Dmedia%26token%3D060b281d-9363-48a1-a0f9-788ad1831e96&width=300&dpr=4&quality=100&sign=2218e05e&sv=1)
Type: Returns or sets the data type of the values in the column's cells.
Implements
Name | Description |
---|---|
All wisej components implement this interface. | |
Allows an object to serialize itself. |
Last updated