Column Choosers

XAML

Set the HideColumnChooser property to falseto enable column chooser and to disable set the property to false.

.<ExtendedGridControl:ExtendedDataGrid x:Name="grid" ItemsSource="{Binding SourceTable}" AutoGenerateColumns="False" HideColumnChooser="False" HeadersVisibility="All" Height="300"

                           VerticalAlignment="Top">
            <Controls:DataGrid.Columns>
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Game Name" AllowAutoFilter="False"
                                           Binding="{Binding GameName}" />
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Creator" AllowAutoFilter="False"
                                           Binding="{Binding Creator}" />
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Owner"
                                           Binding="{Binding Owner}" AllowAutoFilter="False"/>
                <ExtendedColumn:ExtendedDataGridTextColumn Header="Publisher"
                                           Binding="{Binding Publisher}" AllowAutoFilter="False"
                                           CanUserSort="False" Width="*"/>

            </Controls:DataGrid.Columns>
</ExtendedGridControl:ExtendedDataGrid>

 

 


Last edited Nov 18, 2012 at 5:26 AM by bpoojary, version 1

Comments

mightyselva Feb 10, 2015 at 10:35 AM 
Hi bpoojary, If i want to make some columns mandatory...how can we do that...
Also when you choose to hide the columns..the viewmodel name is showing behind, why it is..how we can fix it??