DotNetSolutions
Monday, April 15, 2013
Linq orderby in c#
public void LinqOrder()
{
List<Product> products = GetProductList();
var sp=
from p in products
orderby p.ProductName
select p;
gridview1.datasource=sp;
gridview1.databind();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment