grid view paging with stored procedure in entity framework

CadOemShopCS

New Member
gridview paging not work proper error- \[code\]The data source does not support server-side data paging. when use stored procedure in entity framework .\[/code\]My Code : \[code\] case "Email": ViewState["colname"] = e.SortExpression; // ViewState["colname"] = e.SortExpression; if (GridViewSortDirection == SortDirection.Ascending) { users = users.OrderBy(x => x.Email); GridViewSortDirection = SortDirection.Descending; dir = false; } else { users = users.OrderByDescending(x => x.Email); GridViewSortDirection = SortDirection.Ascending; dir = true; } break; } GridViewUsers.DataSource = users; GridViewUsers.DataBind();\[/code\]
 
Back
Top