Rows and .string method

How do i cocatonate certain items from a certain row. When i try it says row is not a string.

Hi @kishanpatel728,

Are you asking to convert row value to string???
If yes use the below code
String.Join(",",row.ItemArray)
Or
String.Join(",",dt.row(0).ItemArray)

Regards, Arivu :slight_smile:

2 Likes

@kishanpatel728 You are trying to access the complete row as string which will give compile time error.
You need to get the row item by giving column index .
For ex: row(0)(0).ToString will give you first row and first column value which you can use to concatenate with any other string using join or any other method.