DataGridViewImageColumn
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Represents a DataGridView column that contains a collection of DataGridViewImageCell cells.
- C#
- VB.NET
public class DataGridViewImageColumn : DataGridViewColumn
Public Class DataGridViewImageColumn
Inherits DataGridViewColumn
Constructors
DataGridViewImageColumn()
Initializes a new instance of the DataGridViewImageColumn class to the default state.
DataGridViewImageColumn(cellTemplate)
Initializes a new instance of the DataGridViewImageColumn class to the default state.
| Name | Type | Description |
|---|---|---|
| cellTemplate | DataGridViewImageCell | An existing DataGridViewImageCell to use as a template. |
Properties
CellImage
Image: Gets or sets the image displayed in the cells that have a null value. (Default: null)
Value: The Image to display. The default is null.
This value is inherited by all the cells in the column. However, the value set in the specific cell overrides the value from the owner column.
CellImageAlignment
DataGridViewContentAlignment: Gets or sets the image alignment in the cells for the column. (Default: NotSet)
Value: A DataGridViewContentAlignment that specifies the image alignment. The default is NotSet.
This value is inherited by all the cells in the column. However, the value set in the specific cell overrides the value from the owner column.
Throws:
- InvalidOperationException The value of the CellTemplate property is null.
CellImageLayout
DataGridViewImageCellLayout: Gets or sets the image layout in the cells for this column. (Default: NotSet)
Value: A DataGridViewImageCellLayout that specifies the image layout. The default is None.
This value is inherited by all the cells in the column. However, the value set in the specific cell overrides the value from the owner column.
Throws:
- InvalidOperationException The value of the CellTemplate property is null.
CellImageSource
String: Gets or sets the image URL or name displayed in cells that have a null value. (Default: null)
Value: The Image to display. The default is null.
This value is inherited by all the cells in the column. However, the value set in the specific cell overrides the value from the owner column.
CellTemplate
DataGridViewCell: Returns or sets the template used to model cell appearance.
Value: A DataGridViewCell that all other cells in the column are modeled after.
Throws:
- InvalidOperationException The type is null.
- InvalidCastException The set type is not compatible with type DataGridViewImageCell.
Methods
OnWebRender(config)
Renders the client component.
| Parameter | Type | Description |
|---|---|---|
| config | Object | Dynamic configuration object. |
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. |