Issue in ussing datatable.Rows(4)(2).ToString

Hi All,
can you please help me with this.
I want to display a value of 4th row an d 2nd column from a data table.
I an trying to use datatable.Rows(4)(2).ToString in a message box activity but its displaying an error Rows is not a member of UiPath.Core.GenericValue.
Can anyone please suggest me how to resolve this issue/ how to add Rows function

Hi
welcome to UiPath community
to display the value of such in Message box activity
datatable.Rows(3)(1).ToString
and make sure that datatable variable has some values in it and is of type datatable and it has a source of input

Cheers @Vinisha

Also make sure your data is stored in a Datarow variable not in a GenericValue one

yes. Datatable variable has data in it. and it is a Data table

awesome
did that expression works fine
Cheers @Vinisha

Nice! Mark my answer as solution if it helped :smiley:

Cheers

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