If you want to store datatable column values in an array using LINQ you can achieve this by the following ways.
string[] ColName = dt.Columns.Cast<DataColumn>().
Select(x => x.ColumnName).ToArray();
Thursday, 27 June 2013
Subscribe to:
Post Comments (Atom)
Copyright 2013 Keep Smiling Always
0 comments:
Post a Comment