R
rob
I try to subclass from DesignerDataSourceView to implemet a custom designer
for a custom DataSource.
Evrerything works fine except paging support in the designer.
When I enable Paging for the linked GridView or DetailView it stops
rendering and displays "The data source does not support server-side data
paging".
I overwrote CanPage:
public override bool CanPage {
get { return true; }
}
and return a List<> in GetDesignTimeData()
public override IEnumerable GetDesignTimeData(int minimumRows, out bool
isSampleData) {
isSampleData = true;
List<T> list = new List<T>();
for (int i = 0; i < minimumRows; i++)
list.Add(_sampleElement);
return list;
}
Wat's going wrong here ?
for a custom DataSource.
Evrerything works fine except paging support in the designer.
When I enable Paging for the linked GridView or DetailView it stops
rendering and displays "The data source does not support server-side data
paging".
I overwrote CanPage:
public override bool CanPage {
get { return true; }
}
and return a List<> in GetDesignTimeData()
public override IEnumerable GetDesignTimeData(int minimumRows, out bool
isSampleData) {
isSampleData = true;
List<T> list = new List<T>();
for (int i = 0; i < minimumRows; i++)
list.Add(_sampleElement);
return list;
}
Wat's going wrong here ?