Select a row from a DataTable

Hi everyone!

I can not see the fail…

Value of type 'System.Data.DataTable' cannot be converted to 'System.Data.DataRow'.

What is the problem?



Please change the data type from DataTable[ ] to DataTable for in_WIList variable and then try.

And also in Else condition assign nothing to out_TransactionItem but not out_TransactionID.

1 Like

I think your variable in_WIList should be of type DataRow[] instead of Datatable if you are accessing a single row, :thinking:

Rammohan B.

1 Like

Ok, it solve the problem, but when I change WIList from DateTable to DateTable a error appear at the condition.

'Count' is not a member of System.Data.DataTable'

It is correct!!

I did not remember the array…

Thank for your help!

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