Hi,
I am using Essential Studio 16.
I only customized the visual style of the RibbonWindow with the next line:
xmlns:skin="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"
skin:SfSkinManager.VisualStyle="Office2016White"
Office2010Icon="/Program;component/Resources/Images/Logo.png"
My xaml with the dataGrid and DataPager is:
<syncfusion:SfDataGrid EnableDataVirtualization="True" Grid.Row="1" Name="MainGrid" AllowFiltering="True" AllowResizingColumns="True" AllowResizingHiddenColumns="True" AllowTriStateSorting="True" Height="auto" Background="White" ShowGroupDropArea="False" Grid.RowSpan="2" BorderBrush="Transparent" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" AutoGenerateColumns="False" ItemsSource="{Binding ElementName=sfDataPager, Path=PagedSource}" RowHoverHighlightingBrush="#FFEEEEEE" RowSelectionBrush="#FFDADADA" CurrentCellBorderBrush="#FFB2B2B2" SelectionForegroundBrush="Black" SelectionMode="Extended" SelectionUnit="Row"
DetailsViewExpanding="MainGrid_DetailsViewExpanding"
GridCopyContent="MainGrid_GridCopyContent"
GridPasteContent="MainGrid_GridPasteContent"
PreviewKeyDown="MainGrid_PreviewKeyDown"
PreviewMouseDoubleClick="MainGrid_PreviewMouseDoubleClick" >
<syncfusion:SfDataGrid.LayoutTransform>
<ScaleTransform ScaleX="{Binding Path=Value, ElementName=zoomSlider}" ScaleY="{Binding Path=Value, ElementName=zoomSlider}" />
</syncfusion:SfDataGrid.LayoutTransform>
<syncfusion:SfDataGrid.DetailsViewDefinition>
<syncfusion:GridViewDefinition RelationalColumn="Details" >
<syncfusion:GridViewDefinition.DataGrid>
<syncfusion:SfDataGrid x:Name="GridDetalles" AutoGenerateColumns="False" AllowSorting="False" AllowResizingColumns="True" AllowResizingHiddenColumns="True" />
</syncfusion:GridViewDefinition.DataGrid>
</syncfusion:GridViewDefinition>
</syncfusion:SfDataGrid.DetailsViewDefinition>
</syncfusion:SfDataGrid>
<syncfusion:SfDataPager Grid.Row="1" Name="sfDataPager" VerticalAlignment="Bottom" AccentBackground="Gray" AccentForeground="White" HorizontalAlignment="Center" NumericButtonCount="10" Visibility="Visible" PageSize="50" Margin="0 0 0 15"
PageIndexChanged="sfDataPager_PageIndexChanged" Foreground="Black"/>
In my code I just use:
private void sfDataPager_PageIndexChanged(object sender, Syncfusion.UI.Xaml.Controls.DataPager.PageIndexChangedEventArgs args)
{
lblStatus.Text = "";
}
It is all that I use in my program. I repeat the problem:
When I clicking on the next page or any number of page, Visual Studio change to break mode, and the error "Index was out of range" appear.