# Pagination on a Datagrid bound to a Variable, not Collection

**URL:** <https://community.weweb.io/t/pagination-on-a-datagrid-bound-to-a-variable-not-collection/3166>\
**Category:** Ask us anything\
**Created:** [June 22, 2023, 5:33am UTC](https://community.weweb.io/t/pagination-on-a-datagrid-bound-to-a-variable-not-collection/3166 "2023-06-22T05:33:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dorian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorian/32/13183_2.png) [@Dorian](https://community.weweb.io/u/Dorian)\
**Post date:** [June 22, 2023, 5:33am UTC](https://community.weweb.io/t/pagination-on-a-datagrid-bound-to-a-variable-not-collection/3166/1 "2023-06-22T05:33:08Z")

</div>

I have successfully implemented backend pagination with Xano on multiple datagrids that are bound directly to the Collections populated by Xano.

However I have another datagrid that is bound to an Array variable, which itself is populated by a Xano-fed collection. There was a reason I did it this way which was necessary at the time, which I can’t quite remember right now…

Anyway, is it possible to apply pagination to the datagrid bound to the Xano-fed array variable? I can’t quite wrap my head around how, but I suspect it should work. I normally use trial and error until I figure it out but in this case I don’t want to break what I already have setup.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Dorian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorian/32/13183_2.png) [@Dorian](https://community.weweb.io/u/Dorian)\
**Post date:** [June 22, 2023, 6:22pm UTC](https://community.weweb.io/t/pagination-on-a-datagrid-bound-to-a-variable-not-collection/3166/2 "2023-06-22T18:22:32Z")

</div>

Solved it easily after a good night’s sleep. 😃

It’s exactly the same config as the [documentation](https://old-docs.weweb.io/backend-pagination/), except I just need to update my variable after refreshing the collection.

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [June 23, 2023, 5:09pm UTC](https://community.weweb.io/t/pagination-on-a-datagrid-bound-to-a-variable-not-collection/3166/3 "2023-06-23T17:09:42Z")

</div>

> [@Dorian](#):
>
> There was a reason I did it this way which was necessary at the time, which I can’t quite remember right now…

Haha been there! 😅

Glad you found the solution. Sleep is awesome!

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [April 24, 2025, 3:51pm UTC](https://community.weweb.io/t/pagination-on-a-datagrid-bound-to-a-variable-not-collection/3166/4 "2025-04-24T15:51:34Z")

</div>

Archived on April 24, 2025, 3:51pm UTC


