Chodzi mi o sytuacje
public partial class StudentsPage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
public IQueryable<Student> GetData()
{
return new StudentsRepo().GetAll().AsQueryable();
}
Automatyczne stronicowanie w GridView wymaga typu IQueryable, stad tak zrobiłem.