You must be logged in to reply to this topic.
The numeric value filter in grid is not able to filter when the column data is having some null values. I dont want to convert the value to a default number as I want to show nothing in the column for those data values.
I could see the behavior as you have mentioned. Similar issue has been reported
recently which has already been forwarded to the developer. Once we receive any
update, I will inform you the solution.
As of now, you may try handling the behavior manually as per your requirement. Please see
the suggested code below.
Private Sub c1DataGrid1_FilterChanging(sender As Object, e As C1.Silverlight.DataGrid.DataGridFilterChangingEventArgs) Handles c1DataGrid1.FilterChanging
If e.ChangingColumns.Count > 0 Then
If Double.IsNaN(DirectCast(e.ChangingColumns(0).Value.FilterInfo(0).Value, Double)) Then
e.ChangingColumns(0).Value.FilterInfo(0).Value = String.Empty
e.ChangingColumns(0).Value.FilterInfo(0).FilterType = DataGridFilterType.Text
End If
End If
End Sub
You must be logged in to reply to this topic.
As a leading component vendor in the Microsoft Visual Studio Industry Partner program, ComponentOne has been providing the widest range of Microsoft Visual Studio components, IDE platform development tools, and applications for over 22 years. ComponentOne product lines encompass custom WinForms, ASP.NET, WPF, Silverlight, Mobile, and COM components, documentation tools, and Web Parts for Microsoft Office SharePoint Server and Windows SharePoint Services.
Contact ComponentOne: 1.800.858.2739 | Pittsburgh: 412.681.4343
©2013 ComponentOne LLC All Rights Reserved.
All product and company names herein may be trademarks of their respective owners.
ComponentOne holds a license under Patent No. 5,490,216 (which expires on September 21, 2013)
