DataGridViewSparklineColumn
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.2.0.0)
Defines sparkline presentation for DataGridViewSparklineCell cells while retaining their bound values.
- C#
- VB.NET
public class DataGridViewSparklineColumn : DataGridViewColumn, IGridVisualColumn
Public Class DataGridViewSparklineColumn
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 DataGridViewSparklineColumn { Name = "Sparkline", DataPropertyName = "Value" };
grid.Columns.Add(column);
Constructors
DataGridViewSparklineColumn()
Creates the typed template and read-only defaults.
Properties
CellTemplate
DataGridViewCell: Gets or sets the required DataGridViewSparklineCell template.
ChartType
SparklineChartType: Gets or sets line, area, or bar presentation of the double array cell value. (Default: Line)
Maximum
Nullable<Double>: Gets or sets optional fixed maximum; null derives the bound from samples. (Default: null)
Minimum
Nullable<Double>: Gets or sets optional fixed minimum; null derives the bound from samples. (Default: null)
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)
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" };
ShowValue
Boolean: Gets or sets displays the latest sample beside the chart. (Default: False)
Tone
SparklineTone: Gets or sets fallback chart tone. (Default: Primary)
ToneMember
String: Gets or sets per-row chart tone member path. (Default: "")
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.
ValueFormat
String: Gets or sets composite format for the latest sample at index zero. (Default: "{0:N0}")
Methods
Clone()
Clones presentation settings and owned collections without copying event subscriptions.
Returns: Object. An independent column.
Dispose(disposing)
Releases observation without disposing the application-owned series.
| 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. |