How to Read Particular Cell Value from a Data Table?

Guys, a quick question,

How to re-present the A2 cell value by using the data table syntax - for example my data table is extracted from a csv file named as dt_csv

How should I read the value of cell A2 from this dt_csv
PS: I do not want to use for-each row activity.

Thanks!

1 Like

You can access by datatable(index)(index).tostring

2 Likes

Hi
we got Two options to do this
–like either we can use activity like GET ROW ITEM


where mention the properties like datatable and datarow and the column index
datatable = dt
ROW = dt.Rows(0) \where 0 is the row index of first row
and column index as = 0

both column and row index starts from 0 for first row and first column

or

–with a ASSIGN activity like this
str_output = Datatable.Rows(rowindex)(columnindex)
or
str_output = Datatable.Rows(rowindex)(“columnname”)

where both column and row index starts from 0 for first row and first column

Cheers @Victor_Victory

4 Likes

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