Concatenate fields ?

I am using a datareader.

I want to get the data a row at a time as a delimited string without looping through the fields, that is in one shot, is there a way to do this

Thanks for ANY help.



Answer this question

Concatenate fields ?

  • rcodarini

    I believe you could use ItemArray property of the DataRow to get all the values into array first. Then use String.Join method to concatenate the values into one string

  • Concatenate fields ?