How do I query a DataTable object by using LINQ?
[top] LINQ can query any data source that implements the IEnumerable interface. To query a DataTable object, first call the AsEnumerable method of the DataTable class. You can then use LINQ to query the data. The following example shows how: var nostr = from u in dt.AsEnumerable() where u.Field(“m”).ToString().ToUpper().StartsWith(“3”) select new { MONEY = u.Field(“m”), TIME = u.Field(“t”), EXT = “Extra Column” }; Sincerely, Allen Chen Microsoft Online Community Support Please remember to mark the replies as answers if they help and unmark them if they provide no help.