Custom DataSource Control

J

jcteague

I am building a custom DataSourceObject for my Business Layer. I have
been following Nikhil Kothari's articles
http://www.nikhilk.net/DataSourceControlsSummary.aspx.

I have the select portion working except that the GridView does not
recognize that the data source is pageable.

I have overridden the CanPage property of the data view
public override bool CanPage
{
get
{
return true;
}
}

and I am setting the Supported Capabilities in the ExecuteSelect
statement.
arguments.AddSupportedCapabilities(DataSourceCapabilities.Page);

However, when I set the paging properties of the GridView
AllowPaging=true, PageIndex=0, PageSize=10

the DataSourceSelectArguments parameter of ExecuteSelect has -1 as the
value for the MaximumRows properties.

Thanks,
John
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top