Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Concatenating from SQL
Message
From
09/09/2004 08:08:42
 
 
To
09/09/2004 07:48:37
Bill Benton
North Florida Software Services
Middleburg, Florida, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00940548
Message ID:
00940553
Views:
17
Hi, Bill,

Not sure about the specifics of what you're looking to do, but here's a basic example that loops through the rows of a datatable and appends to a string variable:
string cText = "";
foreach(DataRow Dr in MyDataSet.Tables["myTable"].Rows)
   cText += Dr["MyColumn"].ToString().Trim();
Does that help?

Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform