Designtimesupport for Paging with DesignerDataSourceView for .NET

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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top