# Data Table output a string

**URL:** <https://forum.uipath.com/t/data-table-output-a-string/414582>\
**Category:** Robot\
**Tags:** datatable, question, studio, system, uiautomation, activities\
**Created:** [April 12, 2022, 12:28pm UTC](https://forum.uipath.com/t/data-table-output-a-string/414582 "2022-04-12T12:28:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![yulya](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yulya/32/263225_2.png) [@yulya](https://forum.uipath.com/u/yulya)\
**Post date:** [April 12, 2022, 12:28pm UTC](https://forum.uipath.com/t/data-table-output-a-string/414582/1 "2022-04-12T12:28:40Z")

</div>

Hello everybody,  
I have a data table with three rows in it.  
I bring it to the right in the picture.  
I need to display this value one by one in the window of another program.  
That is, first enter “3811” into the window and perform an action with this value, then display “3812” and so on.  
please tell me how to do it?

 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/8/d/68d66a8ddc8de75c669e1814bf999c50bfa1529b.png)

---

<div class="post-metadata">

**Author:** ![jack.chan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jack.chan/32/176616_2.png) [@jack.chan](https://forum.uipath.com/u/jack.chan)\
**Post date:** [April 12, 2022, 12:35pm UTC](https://forum.uipath.com/t/data-table-output-a-string/414582/2 "2022-04-12T12:35:19Z")

</div>

use **for each row in datatable**  
replace “HeaderName” with the name of your column header

CurrentRow(“HeaderName”).toString will equal  
1st iteration: 3188  
2nd iteration:3182  
3rd iteration: 3803

![image](https://global.discourse-cdn.com/uipath/original/4X/b/e/b/bebbb80be398c3bb8c7cd4fba07f12aabfd22812.png)

---

<div class="post-metadata">

**Author:** ![Palaniyappan](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/palaniyappan/32/524095_2.png) [@Palaniyappan](https://forum.uipath.com/u/Palaniyappan)\
**Post date:** [April 12, 2022, 1:49pm UTC](https://forum.uipath.com/t/data-table-output-a-string/414582/3 "2022-04-12T13:49:44Z")

</div>

Hi

> [@yulya](#):
>
> display this value one by one in the window of another program.

In log message itself mention like this if you are adding Datarow one by one

**dt.Rows(dt.Rows.Count-1)(“yourcolumnname”).ToString**

This will display the recently added Datarow and that specific column value in log message

Cheers @yulya

---

<div class="post-metadata">

**Author:** ![yulya](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yulya/32/263225_2.png) [@yulya](https://forum.uipath.com/u/yulya)\
**Post date:** [April 13, 2022, 7:57am UTC](https://forum.uipath.com/t/data-table-output-a-string/414582/4 "2022-04-13T07:57:51Z")

</div>

it is works, thank you!

---

<div class="post-metadata">

**Author:** ![yulya](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yulya/32/263225_2.png) [@yulya](https://forum.uipath.com/u/yulya)\
**Post date:** [April 13, 2022, 7:58am UTC](https://forum.uipath.com/t/data-table-output-a-string/414582/5 "2022-04-13T07:58:23Z")

</div>

thank you!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [April 16, 2022, 7:58am UTC](https://forum.uipath.com/t/data-table-output-a-string/414582/6 "2022-04-16T07:58:48Z")

</div>

Closed on April 16, 2022, 7:58am UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
