DataGridViewButtonCell
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Displays a button widget in a DataGridViewCell cell.
- C#
- VB.NET
public class DataGridViewButtonCell : DataGridViewCell
Public Class DataGridViewButtonCell
Inherits DataGridViewCell
Constructors
DataGridViewButtonCell()
Initializes a new instance of DataGridViewButtonCell.
Properties
CellRenderer
String: Returns the name of the cell renderer to use on the client side to render the cell. If it's null or empty it defaults to "Cell".
The name of the cell renderer can be a fully qualified class name (i.e. "wisej.web.datagrid.cellRenderer.Cell") or just the class name (i.e. "ImageCell") in which case the client library prepends "wisej.web.datagrid.cellRenderer".
UseColumnTextForButtonValue
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. (Default: False)
Value: true if the button in the cell uses the owning column's text; otherwise, false. The default is false.
ValueType
Type: Returns or sets the data type of the values in the cell.
Value: A Type representing the data type of the value in the cell.
Methods
GetCellDataValue(cellStyle, includeVisualProperties)
Returns the data value of the cell. This is the value that is returned to the client in the data response stream.
| Parameter | Type | Description |
|---|---|---|
| cellStyle | DataGridViewCellStyle | The cell style in effect for the current cell, used to format the cell's value for the client rendering. |
| includeVisualProperties | Boolean | true to include inherited visual properties; otherwise, false to include only formatting properties. |
Returns: Object.
Implements
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| ICommandSource | Defines an object that can invoke a Command. |