<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:syncfusion="clr-namespace:Syncfusion.Maui.DataGrid;assembly=Syncfusion.Maui.DataGrid"
             xmlns:local="clr-namespace:TestDataGridFiltering"
             x:Class="TestDataGridFiltering.MainPage">

    <ContentPage.BindingContext>
        <local:MainPageViewModel x:Name="viewModel" />
    </ContentPage.BindingContext>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>

        </Grid.RowDefinitions>

        <syncfusion:SfDataGrid x:Name="dataGrid"
                    ItemsSource="{Binding OrderInfoCollection}"
                    AutoGenerateColumnsMode="None"
                    SelectionMode="Single"
                    NavigationMode="Cell"
                    LiveDataUpdateMode="AllowDataShaping">
            <syncfusion:SfDataGrid.Columns>
                <syncfusion:DataGridNumericColumn HeaderText="Order ID" Format="0"
                                MappingName="OrderID" Width="150"/>
                <syncfusion:DataGridTextColumn HeaderText="Customer ID"
                                MappingName="CustomerID"
                                Width="150" />
                <syncfusion:DataGridTextColumn HeaderText="Ship Country"
                                MappingName="ShipCountry"
                                Width="150" />
            </syncfusion:SfDataGrid.Columns>
        </syncfusion:SfDataGrid>
        
    </Grid>
</ContentPage>
