I\'m trying to perform a simple LINQ query on the Columns property of a DataTable:
from c in myDataTable.Columns.AsQueryable() select c.ColumnName
How about:
var x = from c in dt.Columns.Cast() select c.ColumnName;