DataGridViewVisualCell
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Base for lightweight grid visual cells whose presentation is defined by their owning column.
- C#
- VB.NET
public abstract class DataGridViewVisualCell : DataGridViewCell
Public MustInherit Class DataGridViewVisualCell
Inherits DataGridViewCell
Value remains the bound application value. Only the transport data is a presentation map. Member paths resolve against DataBoundItem, then unbound sibling columns by name. These cells are read-only.
Example:
grid.Columns.Add(new DataGridViewMeterColumn { DataPropertyName = "Memory", MaximumMember = "Capacity" });
Properties
CellRenderer
String: Gets the shared renderer, which retains normal grid selection, style, and virtualization.
ValueType
Type: Gets the data type without converting the bound value to presentation markup.
Methods
GetCellDataValue(cellStyle, includeVisualProperties)
Builds a transport-only presentation map without changing Value.
| Parameter | Type | Description |
|---|---|---|
| cellStyle | DataGridViewCellStyle | Effective cell style. |
| includeVisualProperties | Boolean | Whether inherited appearance is requested. |
Returns: Object. The presentation map.
OnClick(e)
Dispatches validated inner roles through the normal grid cell-click pipeline.
| Parameter | Type | Description |
|---|---|---|
| e | DataGridViewCellEventArgs | Grid click information. |
OnKeyDown(e)
Activates the default action using Enter or Space on the focused cell.
| Parameter | Type | Description |
|---|---|---|
| e | KeyEventArgs | Grid keyboard information. |
Inherited By
| Name | Description |
|---|---|
| DataGridViewActionsCell | Renders a actions cell using its owning DataGridViewActionsColumn settings. |
| DataGridViewAvatarCell | Renders a avatar cell using its owning DataGridViewAvatarColumn settings. |
| DataGridViewChipCell | Renders a chip cell using its owning DataGridViewChipColumn settings. |
| DataGridViewMeterCell | Renders a meter cell using its owning DataGridViewMeterColumn settings. |
| DataGridViewSparklineCell | Renders a sparkline cell using its owning DataGridViewSparklineColumn settings. |
| DataGridViewSubtitleCell | Renders a subtitle cell using its owning DataGridViewSubtitleColumn settings. |
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. |