Skip to main content

SparklineEditSettings Class

Contains settings specific to the SparklineEdit editor.

Namespace: DevExpress.Xpf.Editors.Settings

Assembly: DevExpress.Xpf.Core.v24.1.dll

NuGet Package: DevExpress.Wpf.Core


public class SparklineEditSettings :


DevExpress container controls (e.g. GridControl, TreeListControl, and so on) use DevExpress WPF Editors to edit data they display. Each editor has a helper class (a BaseEditSettings descendant) that is responsible for the editor’s functionality. When the same editor is used in multiple locations, a container control uses this helper class to paint its cells. The actual editors are only created when users start to edit, and are automatically deleted when editing is completed.

Refer to the Assign Editors to Cells topic for more information.

For detailed information on sparkline editors, see SparklineEdit.


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.

Grid - SparklineEditSettings

View Example: Show Sparklines in Grid Cells

        Title="MainWindow" Height="562" Width="665" >
    <dxg:GridControl x:Name="grid" ItemsSource="{Binding SalesData}" >
        <dxg:GridColumn FieldName="Title" Header="Order" ReadOnly="True" Width="200"/>
        <dxg:GridColumn FieldName="SparklineData" Header="Sales" Width="200">
                <dxe:SparklineEditSettings PointArgumentMember="ArgumentColumn" PointValueMember="ValueColumn">
                        <dxe:Range Auto="False" Limit1="07/17/2013" Limit2="08/15/2013" />
                        <dxe:AreaSparklineStyleSettings Brush="BlueViolet"
                            HighlightMaxPoint="True" HighlightMinPoint="True" 
                            MaxPointBrush="Red" MinPointBrush="Blue" />
See Also