# Why does Data Viewer Grid ItemClick return row id?

**URL:** https://community.thunkable.com/t/why-does-data-viewer-grid-itemclick-return-row-id/994468
**Category:** Questions about Thunkable X
**Created:** [November 23, 2020, 10:22pm UTC](https://community.thunkable.com/t/why-does-data-viewer-grid-itemclick-return-row-id/994468 "2020-11-23T22:22:14Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [November 23, 2020, 10:22pm UTC](https://community.thunkable.com/t/why-does-data-viewer-grid-itemclick-return-row-id/994468/1 "2020-11-23T22:22:14Z")

</div>

When you click an item in a Data Viewer List, you have the option of using the green “item” or “index” blocks. These are so useful because you have both the value of the item (e.g. the text/name displayed) and the order (1, 2, 3, etc.).

But the Data Viewer Grid block only has the option of using the row id. Why does it not include the ~~item and~~ index? If it makes a difference, I’m using this with Airtable.

![Screen Shot 2020-11-23 at 2.19.55 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/d/4dc39c79a704c8921429f06edfe24a3bcf45ba2a.png)

---

<div class="post-metadata">

### Author: ![luv.ak.tech](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/luv.ak.tech/32/104896_2.png) [@luv.ak.tech](https://community.thunkable.com/u/luv.ak.tech)
#### Post date: [November 24, 2020, 10:05am UTC](https://community.thunkable.com/t/why-does-data-viewer-grid-itemclick-return-row-id/994468/2 "2020-11-24T10:05:30Z")

</div>

yes i also have the same problem but i can still do it

---

<div class="post-metadata">

### Author: ![Michael\_Rogulla](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Michael\_Rogulla](https://community.thunkable.com/u/Michael_Rogulla)
#### Post date: [November 24, 2020, 11:23am UTC](https://community.thunkable.com/t/why-does-data-viewer-grid-itemclick-return-row-id/994468/3 "2020-11-24T11:23:34Z")

</div>

Hi @tatiang,

yes, an “index” would be very nice.

I think “item” is not really an option, because the elements in the data viewer list can differ very much depending on the layout.

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [November 24, 2020, 3:16pm UTC](https://community.thunkable.com/t/why-does-data-viewer-grid-itemclick-return-row-id/994468/4 "2020-11-24T15:16:42Z")

</div>

Good point about the “item” value. I hadn’t thought that through. I would amend this to say just the “index” value would be useful.

---

<div class="post-metadata">

### Author: ![Michael\_Rogulla](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Michael\_Rogulla](https://community.thunkable.com/u/Michael_Rogulla)
#### Post date: [November 24, 2020, 4:44pm UTC](https://community.thunkable.com/t/why-does-data-viewer-grid-itemclick-return-row-id/994468/5 "2020-11-24T16:44:25Z")

</div>

Hi @tatiang,

in case you didn’t know: you can use the “rowID” value to get information from every element in a data source with the “get value from” block:

![grafik](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/c/fc89dfc758d1a9ba29bb6b442ed056c068d4d102.png)

If you would like to know the index, you have to perform a search through the list of values (in case of the block above, a list of names), but it would be easier if the event “Item click” could deliver it.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 12:21pm UTC](https://community.thunkable.com/t/why-does-data-viewer-grid-itemclick-return-row-id/994468/7 "2024-11-08T12:21:27Z")

</div>


