DataList won't reload

I have a DataList like the one in the panel example (
When I update it after removing the last item in the DataList it shows up empty. If I there are more than one item left I see the pages and can choose one of them, but if it was the second to last item the DataList is blank. If I reload the page using F5 it shows the item(s) that are left.

Try to call Reload() method of the DataList.

It didn't make a difference unfortunately.
It 's like if you remove the last item then it it tries to show it anyway. Because if I remove any other than the last object it works.

Please call LastPage() or FirstPage() instead Reload(). We will do our best to handle it internally somehow.

1 Like

I just found FirstPage and LastPag and it works!