1
Reply

sorting,filtering,searching on Component art wpf gird

vikas gupta

vikas gupta

Feb 18 2011 5:14 AM
2.9k
i have already added sorting,filtering,searching on Component art wpf grid as shown in Online documentation but its not wotking.my source code is here:

<xmlgrd:DataGrid Name="Searchkeyword" VerticalAlignment="Top" Margin="0,0,20,0" Grid.Row="2" AllowSorting="True" SearchBoxVisibility="Visible" AllowPaging="False" ShowColumnFilters="True" ScrollBar.Scroll="Grid_Scroll" >
                <xmlgrd:DataGrid.Columns>
                    <xmlgrd:DataGridTextColumn Header="Name" Width="200" Binding="{Binding name}" AllowSearching="True" ShowFilter="True" AllowSorting="True" AllowGrouping="True" />
                    <xmlgrd:DataGridTextColumn Header="Age" Width="100" Binding="{Binding age}" AllowSearching="True" ShowFilter="True" AllowSorting="True" AllowGrouping="True"/>
                    <xmlgrd:DataGridTextColumn Header="Date" Width="100" Binding="{Binding Date}" AllowSearching="True" ShowFilter="True" AllowSorting="True" AllowGrouping="True"/>
                    <xmlgrd:DataGridTextColumn Header="Salary" Width="100" Binding="{Binding salary}" AllowSearching="True" ShowFilter="True" AllowSorting="True" AllowGrouping="True"/>
                </xmlgrd:DataGrid.Columns>
            </xmlgrd:DataGrid>

 Searchkeyword.ItemsSource = dtSerachKeyword.DefaultView;

Please tell me error?

Answers (1)