Convert Datatable to string array with using for each loop into C#
string[] items = new string[] {};
items = Array.ConvertAll(dt.Select(), new Converter<DataRow, string>(DataRowToString));
public static string DataRowToString(DataRow dr) { return dr[0].ToString(); }
No comments :
Post a Comment