Wednesday, March 10, 2010

copy DataColumn to string Array

Step to copy the DataColumn values to string array.

string[] rowValuesForColumn = Array.ConvertAll<DataRow, string>(dsURLs.Tables[0].Select(), delegate(DataRow row) { return (string)row["feedURL"]; });

No comments:

Post a Comment