Friday, 3 February 2012

get string[] from datatable

string[] columnNames = objDT.Columns.Cast<DataColumn>().Select(x => x.ColumnName).ToArray();

No comments:

Post a Comment