Linq To a DataTable

Not that familar with linq, but this does seem rather promising.  A query to get elements from a datatable.

var sd = from myRow in myDt.AsEnumerable()
                         where myRow.Field<int>("ID") == cbID
                         select myRow.Field<DateTime>("DateSent");

http://stackoverflow.com/questions/10855/linq-query-on-a-datatable

Comments

Popular posts from this blog

Asp.net Publishing Broke Site - "App_WebReferences is not allowed because the application is precompiled"

Telerik - Custom Group Footers In RadGrid

Bootstrap Modal Popup is Grayed Out