Custom DataSource Control

Discussion in 'ASP .Net Building Controls' started by jcteague@gmail.com, Jan 9, 2006.

  1. Guest

    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
    , Jan 9, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jonah Olsson
    Replies:
    1
    Views:
    570
    Scott Allen
    Apr 5, 2005
  2. Simon Gorski

    custom control - datasource

    Simon Gorski, Sep 23, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    438
    Simon Gorski
    Sep 23, 2005
  3. J R M
    Replies:
    2
    Views:
    427
    Charlie@CBFC
    Jun 1, 2006
  4. =?Utf-8?B?cm9kY2hhcg==?=

    custom datasource control

    =?Utf-8?B?cm9kY2hhcg==?=, Jul 25, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    446
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Jul 25, 2007
  5. Matt Sokol
    Replies:
    2
    Views:
    374
    Theo Tillotson
    Aug 7, 2003
Loading...

Share This Page