Quote:If you're using .NET 3.5, you can use DataTableExtensions.AsEnumerable (an extension method) and then if you really need a List<datarow> instead of just IEnumerable<datarow> you can call Enumerable.ToList: IEnumerable<datarow> sequence = dt.AsEnumerable(); or List<datarow> list = dt.AsEnumerable().ToList();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)