Click here to Skip to main content
15,887,847 members
Articles / Programming Languages / C#

Convert DataTable to String by Extension Method

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
30 Sep 2011CPOL 44K   6  
Following might be another way to do the job:public static string ConvertDataTableToString(this DataTable dt){ StringBuilder stringBuilder = new StringBuilder(); dt.Rows.Cast().ToList().ForEach(dataRow => { ...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Australia Australia

Comments and Discussions