Hello,
I am using DevExpress 15.1.8 WPF GridControl with the TreeListView and binding ItemsSource to a DataTable object. The DataTable has cells where the value is null (DBNull.Value). However, when enabling conditional formatting on one of the columns with the option "Top 10 Items" an unhanlded exception is thrown:
System.ArgumentException: Object must be of type Double.
at System.Double.CompareTo(Object value)
at System.Collections.Comparer.Compare(Object a, Object b)
at System.Linq.EnumerableSorter`2.CompareKeys(Int32 index1, Int32 index2)
…
at DevExpress.Xpf.Grid.TreeList.TreeListSummarySortedList.Finish(TreeListNode node)
at DevExpress.Xpf.Grid.TreeList.TreeListDataProvider.CalcSummary(IEnumerable`1 summary)
at DevExpress.Xpf.Grid.TreeList.TreeListDataProvider.DoRefreshCore(Boolean forceResort)
at DevExpress.Xpf.Grid.TreeList.TreeListDataProvider.EndUpdate()
at DevExpress.Xpf.Grid.DataControlBase.OnColumnUnboundChanged()
at DevExpress.Xpf.Core.Native.EndInitPostponedAction.PerformIfNotLoading(Action action, Action actionWhenLoading)
at DevExpress.Xpf.Grid.GridControl.AttachToFormatConditions(FormatConditionChangeType changeType)
…
Any idea how to make conditional formatting work if the underlying ItemsSource contain null values?
Thank you!
Hi,
We have reproduced the behavior you described and passed this ticket to our developers for further research. Please bear with us. We will notify you as soon as we make any progress.
Thanks,
Andrey