Datagrid: capturing selected rows after checkbox?

Hello everyone, I’m new to weweb but I already in love with the platform. Related the Datagrid, how would I capture the changes of when a row is selected via the checkbox? I tried the onclick event but the component’s selectedRow yields the states prior the click on the checkbox but not after the click.
Thank you

Just I follow up, I think I figured out. The onClick if done at the checkbox level will get the value from selected row prior the check and the onClick at the datagrid level then will give you the value after the click.

Hi @sleeusis :wave:

The Datagrid comes with a selectedRows component variable which is updated automatically when you select an item in the Datagrid: