<UserControl x:Class="DataViewDashboard.Views.SalesOrderDetailsGrid"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d">
    <Grid>
        <c1:C1DataGrid ItemsSource="{Binding SalesOrderDetails}" AutoGenerateColumns="False" CanUserGroup="False" RowHeight="30">
            <c1:C1AdvancedFiltersBehavior.AdvancedFiltersBehavior>
                <c1:C1AdvancedFiltersBehavior/>
            </c1:C1AdvancedFiltersBehavior.AdvancedFiltersBehavior>
            <c1:C1DataGrid.Columns>
                <c1:DataGridImageColumn Header="Thumbnail" Binding="{Binding Product.ThumbNailPhoto, Converter={StaticResource imageFromDBConverter}}" SortMemberPath="ThumbnailPhotoFileName" />
                <c1:DataGridNumericColumn Header="Product ID" Binding="{Binding ProductID}" SortMemberPath="ProductID" FilterMemberPath="ProductID" />
                <c1:DataGridTextColumn Header="Product Name" Binding="{Binding Product.Name}" SortMemberPath="Product.Name" FilterMemberPath="Product.Name" />
                <c1:DataGridNumericColumn Header="Quantity" Binding="{Binding OrderQty}" SortMemberPath="OrderQty" FilterMemberPath="OrderQty" />
                <c1:DataGridNumericColumn Header="Unit Price" Binding="{Binding UnitPrice}" SortMemberPath="UnitPrice" FilterMemberPath="UnitPrice" Format="c2"/>
                <c1:DataGridNumericColumn Header="Discount" Binding="{Binding UnitPriceDiscount}" SortMemberPath="UnitPriceDiscount" FilterMemberPath="UnitPriceDiscount" Format="c2"/>
                <c1:DataGridNumericColumn Header="Total" Binding="{Binding LineTotal}" SortMemberPath="LineTotal" FilterMemberPath="LineTotal" Format="c2"/>
            </c1:C1DataGrid.Columns>
        </c1:C1DataGrid>
    </Grid>
</UserControl>
