Problem with fetching value from DT

Hello.
How can I get value from Data table witch i created by reading data from file

So, I hava DT named dtKontrolneMjereFilter and have to fetch data from column KOMENTAR

You can use for each row in Datatable function and CurrentRow(" KOMENTAR").ToString will give you the value

But the file has just one row. I dont need to use for each activity.
Is there another way to fetch value form that one and only row and column “KOMENTAR”?

Hi @okalinic

Can you try this

KOMENTAR = dtKontrolneMjereFilter.Rows(0)("KOMENTAR").ToString

Regards,

1 Like

Dt.Rows(0)(“ColumnName”).ToString

1 Like