Skip to main content
Version: 4.2

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.

public abstract class DataGridViewVisualCell : 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​

Instance member CellRenderer​

String: Gets the shared renderer, which retains normal grid selection, style, and virtualization.

Instance member ValueType​

Type: Gets the data type without converting the bound value to presentation markup.

Methods​

Instance member GetCellDataValue(cellStyle, includeVisualProperties)​

Builds a transport-only presentation map without changing Value.

ParameterTypeDescription
cellStyle by referenceDataGridViewCellStyleEffective cell style.
includeVisualPropertiesBooleanWhether inherited appearance is requested.

Returns: Object. The presentation map.

Instance member OnClick(e)​

Dispatches validated inner roles through the normal grid cell-click pipeline.

ParameterTypeDescription
eDataGridViewCellEventArgsGrid click information.

Instance member OnKeyDown(e)​

Activates the default action using Enter or Space on the focused cell.

ParameterTypeDescription
eKeyEventArgsGrid keyboard information.

Inherited By​

NameDescription
DataGridViewActionsCellRenders a actions cell using its owning DataGridViewActionsColumn settings.
DataGridViewAvatarCellRenders a avatar cell using its owning DataGridViewAvatarColumn settings.
DataGridViewChipCellRenders a chip cell using its owning DataGridViewChipColumn settings.
DataGridViewMeterCellRenders a meter cell using its owning DataGridViewMeterColumn settings.
DataGridViewSparklineCellRenders a sparkline cell using its owning DataGridViewSparklineColumn settings.
DataGridViewSubtitleCellRenders a subtitle cell using its owning DataGridViewSubtitleColumn settings.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
ICommandSourceDefines an object that can invoke a Command.