Then in the Xceed document there is a code example that does not work for me. This can be because my grid is bound to a DataGrudClub. The objects used in the collection are used by datagridcollection to implement IDataErrorInfo.
Errors are showing up correctly. The problem is that they are using the default orange background for errors ... I need red border below my grid's XAML is immediate. I set the property of Datashell background to red, so I can be sure That I have access to the properties of the grid ... I do. I can not find a way to identify cell w / errors, so I style them! Thanks
& lt; XceedDG: DataGridControl Grid.Row = "1" Grid.ColumnSpan = "5" ItemsSource = "{Binding Path = ABGDataGridCollectionView, UpdateSourceTrigger = PropertyChanged}" Background = "{x: Static View: DataGridControlBackgroundBrushes.ElementalBlue}" IsDeleteCommandEnabled = "True" FONTSIZE = "16" AutoCreateColumns = "false" X: name = "EncounterDataGrid" AllowDrop = "this is true" & gt; & Lt; XceedDG: DataGridControl.View & gt; & Lt; View: tableview ColumnStretchMode = "All" ShowRowSelectorPane = "True" ColumnStretchMinWidth = "100" & gt; & Lt; View: TableView.FixedHeaders & gt; & Lt; DataTemplate & gt; & Lt; XceedDG: InsertionRow Height = "40" /> & Lt; / DataTemplate & gt; & Lt; / View: TableView.FixedHeaders & gt; & Lt; / View: tableview & gt; & Lt; / XceedDG: DataGridControl.View & gt; & Lt ;! - Group header formatting - & gt; & Lt; XceedDG: DataGridControl.Resources & gt; & Lt; Style TargetType = "{x: Type XceedDG: GroupByControl}" & gt; & Lt; Setter property = "visibility" value = "collapsed" /> & Lt; / Style & gt; & Lt; Style TargetType = "{x: Type XceedDG: DataCell}" & gt; & Lt; Setter property = "background" value = "red" /> & Lt; / Style & gt; & Lt; / XceedDG: DataGridControl.Resources & gt;
...
Knowledge base entry:
Grid xmlns: xcdg = "http://schemas.xceed.com/wpf/xaml/datagrid" & gt; & Lt; Grid.Resources & gt; & Lt; Style x: Key = "errorStyle" TargetType = "{x: type xcdg: DataCell}" & gt; & Lt; Setter property = "foreground" value = "red" /> & Lt; / Style & gt; & Lt; /Grid.Resources> & Lt; Xcdg: Data Grid Control Cell Arrayer Style = "{Static Resources Error Slall}" & gt; & Lt ;! - Staff Oyमित - & gt; & Lt; / Xcdg: DataGridControl & gt; & Lt; / Xcdg: DataGridControl & gt;
Comments
Post a Comment