DataGridViewImageColumn
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.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)
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)
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)
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)
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.
Throws:
- InvalidOperationException The type is null.
- InvalidCastException The set type is not compatible with type DataGridViewImageCell.
Implements
| Name | Description |
|---|---|
| IWisejComponent | All wisej components implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |