# Row count in a bound query

**URL:** <https://forum.inductiveautomation.com/t/row-count-in-a-bound-query/2205>\
**Category:** Ignition\
**Created:** [September 17, 2010, 4:16pm UTC](https://forum.inductiveautomation.com/t/row-count-in-a-bound-query/2205 "2010-09-17T16:16:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon.Trusik](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jon.Trusik](https://forum.inductiveautomation.com/u/Jon.Trusik)\
**Post date:** [September 17, 2010, 4:16pm UTC](https://forum.inductiveautomation.com/t/row-count-in-a-bound-query/2205/1 "2010-09-17T16:16:20Z")

</div>

Is there a way to retrieve the row count in a bound query? I know it shows up on the data property in the properties listing, is there a way to access this programmatically?

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [September 17, 2010, 4:44pm UTC](https://forum.inductiveautomation.com/t/row-count-in-a-bound-query/2205/2 "2010-09-17T16:44:23Z")

</div>

I believe you are talking about a dataset property. In that case yes, you can retrieve the row count programmatically and through binding. In scripting you do the following:`event.source.parent.getComponent("Comp").data.rowCount()`In binding you bind a integer property to the following:`len({Root Container.Comp.data})`Of course you just need to change the references to your dataset property.
