# Only allow a single dataTable row selection

**URL:** <https://community.dynatrace.com/t/only-allow-a-single-datatable-row-selection/42686>\
**Category:** Developer Q&A Forum\
**Tags:** custom-app, coding-assistance\
**Created:** [November 17, 2023, 2:19pm UTC](https://community.dynatrace.com/t/only-allow-a-single-datatable-row-selection/42686 "2023-11-17T14:19:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilgi](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gilgi/32/11747_2.png) [@gilgi](https://community.dynatrace.com/u/gilgi)\
**Post date:** [November 17, 2023, 2:19pm UTC](https://community.dynatrace.com/t/only-allow-a-single-datatable-row-selection/42686/1 "2023-11-17T14:19:55Z")

</div>

Hi,

I wonder (since I could not find somethign in the documentation) if there is an easy way to only allow a single Datatable row selection without building the whole mechanism with the&nbsp;onRowSelectionChange method.

Gil.

---

<div class="post-metadata">

**Author:** ![sinisa\_zubic](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/sinisa_zubic/32/32498_2.png) [@sinisa\_zubic](https://community.dynatrace.com/u/sinisa_zubic)\
**Post date:** [November 20, 2023, 9:30am UTC](https://community.dynatrace.com/t/only-allow-a-single-datatable-row-selection/42686/2 "2023-11-20T09:30:22Z")

</div>

Hi&nbsp;[@gilgi](https://community.dynatrace.com/user/12008)

no unfortunately there is no easy way to only allow single row selection for the dataTable. So you have to build a logic with&nbsp;onRowSelectionChange.

Best,  
Sini
