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

Bootstrap Modal Popup is Grayed Out

Telerik - Custom Group Footers In RadGrid

DNN Site Crawler - LuceneController is disposed and cannot be used