DataGridViewMeterColumn
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Defines meter presentation for DataGridViewMeterCell cells while retaining their bound values.
- C#
- VB.NET
public class DataGridViewMeterColumn : DataGridViewColumn, IGridVisualColumn
Public Class DataGridViewMeterColumn
Inherits DataGridViewColumn
Implements 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
DataGridViewMeterColumn()
Creates the typed template and read-only defaults.
Properties
BarHeight
Int32: Gets or sets capacity bar thickness in pixels, from 1 through 64. (Default: 5)
CellTemplate
DataGridViewCell: Gets or sets the required DataGridViewMeterCell template.
Maximum
Double: Gets or sets fallback capacity in the same units as the cell value. (Default: 100)
MaximumMember
String: Gets or sets per-row capacity member path; invalid values use Maximum. (Default: "")
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)
ShowText
Boolean: Gets or sets shows value text below the capacity bar. (Default: True)
TextMember
String: Gets or sets optional display text member path. (Default: "")
Thresholds
MeterThresholdCollection: Gets the absolute tone thresholds, shared in shape with MeterBar; entries are deep-copied by Clone.
Methods
Clone()
Clones presentation settings and owned collections without copying event subscriptions.
Returns: Object. An independent column.
Dispose(disposing)
Releases collection observation and the optional overflow menu.
| Parameter | Type | Description |
|---|---|---|
| disposing | Boolean | Whether managed resources are being released. |
Implements
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| IWisejComponent | All wisej components implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |