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
With Linq Method Syntax:
var x = myDataTable.Columns.Cast().Select(c => c.ColumnName);