Welcome to the UWP feedback portal. We’re happy you’re here! If you have feedback on how to improve the UWP, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hello,


I try to filter a double and it seems to not working.. Could you help me :-)

filterIssue.png

I create a small sample for you:

XAML:
        <syncfusion:SfDataGrid x:Name="testGrid" AllowFiltering="True">
            <syncfusion:SfDataGrid.Columns>
                <syncfusion:GridTemplateColumn HeaderText="Test"
                                               MappingName="DoubleValue"
                                               AllowEditing="False">
                    <syncfusion:GridTemplateColumn.CellTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding DoubleValue}" ></TextBlock>
                    </DataTemplate>
                    </syncfusion:GridTemplateColumn.CellTemplate>
                </syncfusion:GridTemplateColumn>
            </syncfusion:SfDataGrid.Columns>
        </syncfusion:SfDataGrid>

Model:
        public class ItemClass
        {
            public double? DoubleValue { get; set; }
        }

Code Behind
           this.testGrid.Columns["DoubleValue"].ColumnMemberType = typeof(double?);
            this.testGrid.ItemsSource = new List<ItemClass>
            {
                new ItemClass{ DoubleValue = 0.9 },
                new ItemClass{ DoubleValue = 1 },
                new ItemClass{ DoubleValue = 1.1 },
                new ItemClass{ DoubleValue = 1.2 },
                new ItemClass{ DoubleValue = 1.3 },
                new ItemClass{ DoubleValue = 1.4 },
            };


1) I don't understand why the 1.09 value is not correct
2) Even if I Change the value to 1.1, the result is not correct.


Jimmy