# Error paging datagrid

**URL:** <https://community.weweb.io/t/error-paging-datagrid/2081>\
**Category:** How do I?\
**Tags:** data-grid\
**Created:** [March 21, 2023, 9:07am UTC](https://community.weweb.io/t/error-paging-datagrid/2081 "2023-03-21T09:07:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iag](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@Iag](https://community.weweb.io/u/Iag)\
**Post date:** [March 21, 2023, 9:07am UTC](https://community.weweb.io/t/error-paging-datagrid/2081/1 "2023-03-21T09:07:33Z")

</div>

Hi all, I am trying to paginate the data obtained from an api in rows of ten but still the datagrid shows all the rows and not only the corresponding ten.

 ![c4](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/1/14646834490d0d3169ffde3c06c3126463db4a82.png)

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [March 21, 2023, 9:30am UTC](https://community.weweb.io/t/error-paging-datagrid/2081/2 "2023-03-21T09:30:40Z")

</div>

Did you bind directly to the collection and not to the collection.data?

---

<div class="post-metadata">

**Author:** ![Iag](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@Iag](https://community.weweb.io/u/Iag)\
**Post date:** [March 21, 2023, 10:23am UTC](https://community.weweb.io/t/error-paging-datagrid/2081/3 "2023-03-21T10:23:11Z")

</div>

Yes, I have to conect it to GetPosts[‘data’]?

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [March 21, 2023, 10:29am UTC](https://community.weweb.io/t/error-paging-datagrid/2081/4 "2023-03-21T10:29:45Z")

</div>

No normally you should bind it directly to the collection.  
Can you give me a screenshot of your binding data?

---

<div class="post-metadata">

**Author:** ![Iag](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@Iag](https://community.weweb.io/u/Iag)\
**Post date:** [March 21, 2023, 10:33am UTC](https://community.weweb.io/t/error-paging-datagrid/2081/5 "2023-03-21T10:33:19Z")

</div>

You can see the binding in the lower left corner of the first image, or do you mean something else?

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [March 21, 2023, 10:45am UTC](https://community.weweb.io/t/error-paging-datagrid/2081/6 "2023-03-21T10:45:22Z")

</div>

The one from the formula in the datagrid 🙂

---

<div class="post-metadata">

**Author:** ![Iag](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@Iag](https://community.weweb.io/u/Iag)\
**Post date:** [March 21, 2023, 10:50am UTC](https://community.weweb.io/t/error-paging-datagrid/2081/7 "2023-03-21T10:50:10Z")

</div>

You are right, I had the formula wrongly written because I received the warning “expected format”, thank you very much.
