Skip to main content
Version: 4.2

DataGridViewSparklineColumn

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.2.0.0)

Defines sparkline presentation for DataGridViewSparklineCell cells while retaining their bound values.

public class DataGridViewSparklineColumn : 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 DataGridViewSparklineColumn { Name = "Sparkline", DataPropertyName = "Value" };
grid.Columns.Add(column);

Constructors​

Instance member DataGridViewSparklineColumn()​

Creates the typed template and read-only defaults.

Properties​

Instance member CellTemplate​

DataGridViewCell: Gets or sets the required DataGridViewSparklineCell template.

Instance member ChartType​

SparklineChartType: Gets or sets line, area, or bar presentation of the double array cell value. (Default: Line)

Instance member Maximum​

Nullable<Double>: Gets or sets optional fixed maximum; null derives the bound from samples. (Default: null)

Instance member Minimum​

Nullable<Double>: Gets or sets optional fixed minimum; null derives the bound from samples. (Default: null)

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 Series​

ChartSeries: Gets or sets shared chart series presentation and optional data binding for compact cells. (Default: null)

A ChartSeries cell value takes precedence over this property. Otherwise the series projects an enumerable cell value or uses its own DataSource or Points. Line, Area, Column and Bar map to compact geometry; other chart types use a line. Bound cell values remain unchanged. The series is shared with column clones and is not owned by the column.

Example:

column.Series = new ChartSeries { ChartType = ChartType.Area, ValueMember = "Amount" };

Instance member ShowValue​

Boolean: Gets or sets displays the latest sample beside the chart. (Default: False)

Instance member Tone​

SparklineTone: Gets or sets fallback chart tone. (Default: Primary)

Instance member ToneMember​

String: Gets or sets per-row chart tone member path. (Default: "")

Instance member TrendAccessibleText​

String: Gets or sets the localized override for the "Trend" text. (Default: null)

The default is null, which selects the built-in translation for the current UI culture. The getter returns the configured override. An empty string suppresses the text without changing the operation.

Instance member ValueFormat​

String: Gets or sets composite format for the latest sample at index zero. (Default: "{0:N0}")

Methods​

Instance member Clone()​

Clones presentation settings and owned collections without copying event subscriptions.

Returns: Object. An independent column.

Protected member Dispose(disposing)​

Releases observation without disposing the application-owned series.

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.