'Declaration Public Property CellErrorStyle As Style
'Usage Dim instance As ColumnBase Dim value As Style instance.CellErrorStyle = value value = instance.CellErrorStyle
public Style CellErrorStyle {get; set;}
'Declaration Public Property CellErrorStyle As Style
'Usage Dim instance As ColumnBase Dim value As Style instance.CellErrorStyle = value value = instance.CellErrorStyle
public Style CellErrorStyle {get; set;}
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" xmlns:local="clr-namespace:Xceed.Wpf.Documentation"> <Grid.Resources> <xcdg:DataGridCollectionViewSource x:Key="cvs_orders" Source="{Binding Source={x:Static Application.Current}, Path=Orders}"/> </Grid.Resources> <xcdg:DataGridControl x:Name="OrdersGrid" ItemsSource="{Binding Source={StaticResource cvs_orders}}"> <xcdg:DataGridControl.Resources> <Style x:Key="cell_error" TargetType="{x:Type xcdg:DataCell}"> <Setter Property="Foreground" Value="Red"/> </Style> </xcdg:DataGridControl.Resources> <xcdg:DataGridControl.Columns> <xcdg:Column FieldName="Freight" CellErrorStyle="{StaticResource cell_error}"> <xcdg:Column.CellValidationRules> <local:ShippingCostValidationRule/> </xcdg:Column.CellValidationRules> </xcdg:Column> </xcdg:DataGridControl.Columns> </xcdg:DataGridControl> </Grid>
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2