# Sum a field across DataGrid selectedRows - 'on click' bug?

**URL:** <https://community.weweb.io/t/sum-a-field-across-datagrid-selectedrows-on-click-bug/3124>\
**Category:** Ask us anything\
**Created:** [June 19, 2023, 6:24pm UTC](https://community.weweb.io/t/sum-a-field-across-datagrid-selectedrows-on-click-bug/3124 "2023-06-19T18:24:35Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [June 20, 2023, 7:50am UTC](https://community.weweb.io/t/sum-a-field-across-datagrid-selectedrows-on-click-bug/3124/11 "2023-06-20T07:50:27Z")

</div>

selected rows is generated by the grid component.  
If you are not using the grid component but use a collection list or repeated items in a container yuo can keep track of selected items by yourself with a workflow [like this example](https://community.weweb.io/t/checkboxes-within-a-collection-list/1379/3)

---

_[View the full topic](https://community.weweb.io/t/sum-a-field-across-datagrid-selectedrows-on-click-bug/3124)._
