the SfDataGrid programmatically together with an SfDataPager, the data is
loaded dynamically with the OnDemandLoading event.
subscribed to the PropertyChanged event of the SfAdatGrid and when the height
of the SfDatagrid is changed we recalculate the page size.
page size is calculated, we try to update the PageCount and PageSize
properties, causing an "Out of range" exception within the SfDataGrid
control for access to some list.
workaround we have invoked the LoadDynamicItems function before modifying the
PageCount and PageSize properties.
that when updating the properties, you try to access a position in the list of
items to be shown on the screen that does not exist, however, what should occur
is that the OnDemandLoading event is launched to reload the data of the