Displays a compact sparkline for each data row using the cell value's sequence of numeric points.
Cell values may be a double array or another IEnumerable. Elements that do not implement IConvertible are treated as zero; other elements are converted to double.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class GridViewSparklineColumn : GridViewDataColumn, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IEditorProvider, INotifyPropertyChangingEx, IContextMenuProvider, IDataConversionInfoProvider, IGridViewEventListener, ITypeDescriptorContext, IServiceProvider
Inheritance: objectDisposableObjectRadObjectGridViewColumnGridViewDataColumnGridViewSparklineColumn...
Implements:
Inherited Members
Constructors
Initializes a new instance of the GridViewSparklineColumn.
public GridViewSparklineColumn()
Initializes a new instance of the GridViewSparklineColumn.
Initializes a new instance of the GridViewSparklineColumn.
public GridViewSparklineColumn(string fieldName)
A string value referring to the unique name of the column.
Properties
Gets or sets the data type of the column.
[Browsable(true)]
[TypeConverter(typeof(DataTypeConverter))]
public override Type DataType { get; set; }
Overrides:
Gets or sets a value indicating what is the type of the generated series.
[Browsable(true)]
public SparkSeriesType SeriesType { get; set; }
Gets or sets a value indicating whether the first point marker will be shown.
[Browsable(true)]
public bool ShowFirstPointIndicator { get; set; }
Gets or sets a value indicating whether the high point marker will be shown.
[Browsable(true)]
public bool ShowHighPointIndicator { get; set; }
Gets or sets a value indicating whether the last point marker will be shown.
[Browsable(true)]
public bool ShowLastPointIndicator { get; set; }
Gets or sets a value indicating whether the low point marker will be shown.
[Browsable(true)]
public bool ShowLowPointIndicator { get; set; }
Gets or sets a value indicating whether the point markers will be shown.
[Browsable(true)]
public bool ShowMarkers { get; set; }
Gets or sets a value indicating whether the negative points marker will be shown.
[Browsable(true)]
public bool ShowNegativePointIndicators { get; set; }
Gets or sets a value whether tooltips on the point markers will be shown.
[Browsable(true)]
public bool ShowTooltip { get; set; }
Methods
Creates a SparkSeries based on the SeriesType property of the column.
public static SparkSeries CreateSparkSeries(SparkSeriesType seriesType)
Uses a sparkline cell element for data rows and the base column's cell type for other rows.
public override Type GetCellType(GridViewRowInfo row)
The row for which the cell type is requested.
Returns:The sparkline cell type for a data row; otherwise, the type selected by the base column.
Overrides:
Fires while exporting or printing the sparkline cell element, allows customization of the series.
public virtual void RaiseOnSparklineElementExporting(object sender, SparklineElementExportingEventArgs args)
The sender which is raising the event on the column.
argsSparklineElementExportingEventArgsThe SparklineElementExportingEventArgs instance containing the event data.
Events
Fires when a spark line will be painted using the SolidBrush class.
public event PaintSparkFillEventHandler PaintSparkFill
Fires when a spark line will be painted using the Pen class.
public event PaintSparkStrokeEventHandler PaintSparkStroke
Fires before adding data points to the SparkSeriesobject. It is possible to cancel the event and bind the series.
public event SparkDataNeededEventHandler SparkDataNeeded
Fires while exporting or printing the sparkline cell element, allows customization of the series.
public event SparklineElementExportingEventHandler SparklineElementExporting