Return first result in datatable

Hi all,

Can I use a Get Row Item to return the first result in the second column of my data table? If so, could I please have assistance in how this is done.


MyDatatable.Rows(0)(1).ToString will return the first row, second column value.


You can access datatable using rowIndex and columnIndex. (Index starts from 0)
First result - Row 0
Second Column - Column 1

DT.rows(0).Item(1) will give first value in the second column

Hey @MattWW

Apart from above posts as your question was about Get Row Item Activity, Yes you can do it.

you can either set ColumnName or ColumnIndex property one at a time :slight_smile:
For your Assistance find below screenshot.



1 Like