Skip to main content
Version: 4.2

DataGridViewMeterColumn

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Defines meter presentation for DataGridViewMeterCell cells while retaining their bound values.

public class DataGridViewMeterColumn : DataGridViewColumn, IGridVisualColumn

Presentation belongs to the column. Member paths resolve against the bound record, or sibling column names in unbound grids. Changes refresh grid data. These columns are read-only; cell clicks still raise the inherited grid CellClick event.

Example:

var column = new DataGridViewMeterColumn { Name = "Meter", DataPropertyName = "Value" };
grid.Columns.Add(column);

Constructors​

Instance member DataGridViewMeterColumn()​

Creates the typed template and read-only defaults.

Properties​

Instance member BarHeight​

Int32: Gets or sets capacity bar thickness in pixels, from 1 through 64. (Default: 5)

Instance member CellTemplate​

DataGridViewCell: Gets or sets the required DataGridViewMeterCell template.

Instance member Maximum​

Double: Gets or sets fallback capacity in the same units as the cell value. (Default: 100)

Instance member MaximumMember​

String: Gets or sets per-row capacity member path; invalid values use Maximum. (Default: "")

Instance member ReadOnly​

Boolean: Gets or sets whether the user can edit the column's cells. The default is true: the cells have no editor. (Default: True)

Instance member ShowText​

Boolean: Gets or sets shows value text below the capacity bar. (Default: True)

Instance member TextMember​

String: Gets or sets optional display text member path. (Default: "")

Instance member Thresholds​

MeterThresholdCollection: Gets the absolute tone thresholds, shared in shape with MeterBar; entries are deep-copied by Clone.

Methods​

Instance member Clone()​

Clones presentation settings and owned collections without copying event subscriptions.

Returns: Object. An independent column.

Protected member Dispose(disposing)​

Releases collection observation and the optional overflow menu.

ParameterTypeDescription
disposingBooleanWhether managed resources are being released.

Implements​

NameDescription
IUserDataProvides access to the UserData and Tag properties associated to the component implementing this interface.
IWisejComponentAll wisej components implement this interface.
IWisejSerializableAllows an object to serialize itself.