摘要: stringpropertyName=GridViewSortExpression;Func<Entity,object>orderbyField=entity=>entity.GetType().InvokeMember(propertyName,BindingFlags.GetProperty,null,entity,newobject[]{});GridView.DataSource=GridViewSortDirection==SortDirection.Ascending?entities.OrderBy(orderbyField):entities.OrderBy 阅读全文
posted @ 2012-04-20 12:05 说不得 阅读(266) 评论(0) 推荐(0) 编辑