DataTable orders = dataSet.Tables["SalesOrderHeader"];
EnumerableRowCollection<DataRow> query =
from order in orders.AsEnumerable()
where order.Field<bool>("OnlineOrderFlag") == true
orderby order.Field<decimal>("TotalDue")
select order;
DataView view = query.AsDataView();
bindingSource1.DataSource = view;
'LINQ & Entity' 카테고리의 다른 글
| scottgu 아저씨 LINQ 쿼리 모음정리 (0) | 2010.02.23 |
|---|---|
| [LINQ TO SQL] DataContext에서 조인하기 (0) | 2010.02.23 |
| Lambda Expression Example (0) | 2010.02.23 |
| Using LINQ to SQL (0) | 2010.02.23 |
| LINQ 로 Like 검색하기 (0) | 2010.02.19 |
| [Predicate , List 검색 Find ]제네릭 대리자 사용하기 (0) | 2010.01.20 |
| [LINQPad] LINQ 쿼리 빌더 및 확인 TOOL (0) | 2009.12.18 |
| LINQ 쿼리를 이용한 데이터 엑세스 (0) | 2009.12.18 |
| [DataContext.GetCommand ]LINQ 로 만들어진 쿼리를 확인해보기 (0) | 2009.12.18 |
| Linq Pager 페이징 (0) | 2009.12.08 |