SparklineEditSettings.PointValueMember Property
Specifies the name of a binding for data point values.
Namespace: DevExpress.Xpf.Editors.Settings
Assembly: DevExpress.Xpf.Core.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
String | A String value. |
Remarks
The SparklineEditSettings.PointArgumentMember and PointValueMember properties together define how to generate data points for a sparkline.
Example
This example demonstrates how to show sparklines in a grid column. Note that in this sample an Area sparkline is displayed. To change Area to another sparkline view, replace AreaSparklineStyleSettings with either BarSparklineStyleSettings, LineSparklineStyleSettings or WinLossSparklineStyleSettings.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-show-sparklines-in-a-grid-e4986.
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
x:Class="SparklineInGrid.MainWindow"
Title="MainWindow" Height="562" Width="665" >
<Grid>
<dxg:GridControl x:Name="grid" ItemsSource="{Binding SalesData}" >
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="Title" Header="Order" ReadOnly="True" Width="200"/>
<dxg:GridColumn FieldName="SparklineData" Header="Sales" Width="200">
<dxg:GridColumn.EditSettings>
<dxe:SparklineEditSettings PointArgumentMember="ArgumentColumn" PointValueMember="ValueColumn">
<dxe:SparklineEditSettings.PointArgumentRange>
<dxe:Range Auto="False" Limit1="07/17/2013" Limit2="08/15/2013" />
</dxe:SparklineEditSettings.PointArgumentRange>
<dxe:SparklineEditSettings.StyleSettings>
<dxe:AreaSparklineStyleSettings Brush="BlueViolet"
HighlightMaxPoint="True" HighlightMinPoint="True"
MaxPointBrush="Red" MinPointBrush="Blue" />
</dxe:SparklineEditSettings.StyleSettings>
</dxe:SparklineEditSettings>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
</dxg:GridControl.Columns>
</dxg:GridControl>
</Grid>
</Window>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PointValueMember property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.