DataGridViewImageCell
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Displays an image in a DataGridViewCell cell.
- C#
- VB.NET
public class DataGridViewImageCell : DataGridViewCell
Public Class DataGridViewImageCell
Inherits DataGridViewCell
Constructors
DataGridViewImageCell()
Initializes a new instance of DataGridViewImageCell.
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".
FormattedValueType
Type: Returns the type of the formatted value associated with the cell.
Value: A Type representing the type of the cell's formatted value.
ImageAlignment
DataGridViewContentAlignment: Gets or sets the alignment of the image in the cell.
Value: A DataGridViewContentAlignment for this cell. The default is NotSet.
ImageLayout
DataGridViewImageCellLayout: Gets or sets the layout of the image in the cell.
Value: A DataGridViewImageCellLayout for this cell. The default is NotSet.
ValueType
Type: Returns the data type of the values in the cell.
Value: A Type representing the data type of the value in the cell.
ValueTypeConverter
TypeConverter: Return the type converter to use to convert the value in the cell to the formatted value.
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. |