var view = this.dataGrid.View as Syncfusion.UI.Xaml.Grid.GridPagedCollectionViewWrapper;
var count = view.ItemCount; |
<Style x:Key="popupstyleforCustomerName" TargetType="Syncfusion:GridFilterControl">
<Setter Property="FilterMode" Value="Both" />
<Setter Property="AdvancedFilterStyle" Value="{StaticResource advancedfilterstyleforCustomerName}" />
</Style>
<Syncfusion:GridTextColumn HeaderText="Customer Name" FilterPopupStyle="{StaticResource popupstyleforCustomerName}" MappingName="CustomerName" /> |
private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
{
this.sfDataPager.Source = respository.PopulateOrders(10);
this.dataGrid.ItemsSource = this.sfDataPager.PagedSource;
this.dataGrid.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.ApplicationIdle,
new Action(() =>
{
var view = this.dataGrid.View as Syncfusion.UI.Xaml.Grid.GridPagedCollectionViewWrapper;
var count = view.ItemCount;
}));
} |