<UserControl x:Class="FilteringByCustomTypeSilverlight.Page2"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerikGrid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
    >
    <Grid x:Name="LayoutRoot" Background="White">
        <telerikGrid:RadGridView Name="GridView" AutoGenerateColumns="False" ColumnsWidthMode="Auto">
            <telerikGrid:RadGridView.Columns>
                <telerikGrid:GridViewDataColumn HeaderText="XAML Column" DataMemberBinding="{Binding GmailMessage.Attachment}" />
                <telerikGrid:GridViewDataColumn HeaderText="XAML Column 2" DataMemberBinding="{Binding GmailMessage.Sender}" />
                
                <!-- Note:  
                            If I add:  
                                
                                    IsCustomSortingEnabled="True" 
                
                            I get: 
                            
                                At least one object must implement IComparable
                
                            Uncomment the column below and sort it to see this in action
                -->
                <!--<telerikGrid:GridViewDataColumn HeaderText="XAML Column" DataMemberBinding="{Binding GmailMessage.Attachment}" IsCustomSortingEnabled="True" />-->
                
            </telerikGrid:RadGridView.Columns>
        </telerikGrid:RadGridView>
    </Grid>
</UserControl>
