Ah ..sometimes simple tasks baffle me...Here is a function to print column names of a datatable
private void PrintColumnNames(DataTable dt) { // For each column, print the ColumnName. foreach(DataColumn column in dt.Columns) { Response.Write(column.ColumnName); } }
No comments:
Post a Comment