# Paging Bug and Choose The First Page in DataGrid

**URL:** <https://forum.radzen.com/t/paging-bug-and-choose-the-first-page-in-datagrid/3622>\
**Category:** Angular\
**Created:** [May 15, 2020, 3:37pm UTC](https://forum.radzen.com/t/paging-bug-and-choose-the-first-page-in-datagrid/3622 "2020-05-15T15:37:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ozgur\_agi](https://forum.radzen.com/letter_avatar_proxy/v4/letter/o/7c8e57/32.png) [@ozgur\_agi](https://forum.radzen.com/u/ozgur_agi)\
**Post date:** [May 15, 2020, 3:37pm UTC](https://forum.radzen.com/t/paging-bug-and-choose-the-first-page-in-datagrid/3622/1 "2020-05-15T15:37:00Z")

</div>

Hello,

Do we have a function which has a similar functionality like FirstPage() mentioned [here](http://forum.radzen.com/t/datalist-wont-reload/1883)?

I have 2 datagrids. When click on a row in first grid, the id of the record is taken and another stored procedures is queried with this paramater, whose data is shown in the second datagrid. The problem here is that, some records have a 70+ entries for secind table some only 2. When I choose a record on grid one and go to the 6th page of it(using the paging of datagrid) and then click on another record in table one which has only 2 records for table 2, then the grid shows that no records to display. I checked the query and it is because of the "skip=" parameter. It skips i.e. 50 records so there is no entry to show. If there is a way to choose the first page of the datagrid I will put it before each update to the data grid # 2 but I believe if you could fix this would be the best.

Thank you,

---

<div class="post-metadata">

**Author:** ![ozgur\_agi](https://forum.radzen.com/letter_avatar_proxy/v4/letter/o/7c8e57/32.png) [@ozgur\_agi](https://forum.radzen.com/u/ozgur_agi)\
**Post date:** [May 19, 2020, 10:30am UTC](https://forum.radzen.com/t/paging-bug-and-choose-the-first-page-in-datagrid/3622/2 "2020-05-19T10:30:45Z")

</div>

Can you please help me with this?

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [May 19, 2020, 10:46am UTC](https://forum.radzen.com/t/paging-bug-and-choose-the-first-page-in-datagrid/3622/3 "2020-05-19T10:46:06Z")

</div>

Hi @ozgur_agi,

You can try the following to move the grid to first page.

```auto
this.grid1.skip = 0;
this.grid1.load();

```

Where grid1 is the Name of the DataGrid you want to reset.

---

<div class="post-metadata">

**Author:** ![ozgur\_agi](https://forum.radzen.com/letter_avatar_proxy/v4/letter/o/7c8e57/32.png) [@ozgur\_agi](https://forum.radzen.com/u/ozgur_agi)\
**Post date:** [May 19, 2020, 11:59am UTC](https://forum.radzen.com/t/paging-bug-and-choose-the-first-page-in-datagrid/3622/4 "2020-05-19T11:59:20Z")

</div>

This worked. Thanks 🙂
