No way. I am a beginner. I really don't know if I use sortdescriptors for sorting, I will report an error when I flip the page? Why? I really don't know. When I add the default sorting, there will be no errors. I don't know where the errors are. Please help me,
I reported an error as soon as I turned the page, but I added the sortdescriptor. It was really big.
Code
<Grid x:Name="LayoutRoot" Background="White">
<riaControls:DomainDataSource Name="domainDataSource1" QueryName="GetProducts" AutoLoad="True" LoadSize="10" PageSize="5">
<riaControls:DomainDataSource.DomainContext>
<ria:DomainService1/>
</riaControls:DomainDataSource.DomainContext>
<!--<riaControls:DomainDataSource.SortDescriptors>
<riaControls:SortDescriptor PropertyPath="ProductID"></riaControls:SortDescriptor>
</riaControls:DomainDataSource.SortDescriptors>-->
</riaControls:DomainDataSource>
<StackPanel>
<sdk:DataGrid AutoGenerateColumns="True" Name="dataGrid1" ItemsSource="{Binding Data,ElementName=domainDataSource1}">
</sdk:DataGrid>
<sdk:DataPager Name="myDataPager" Source="{Binding Data,ElementName=domainDataSource1}"/>
</StackPanel>
</Grid>