sqldatasource filterexpression and paging

Discussion in 'ASP .Net' started by lewis, Jan 10, 2007.

  1. lewis

    lewis Guest

    I am having an issue with the paging functionality in the gridview

    I have a gridview that is setup to read from a sqldatasource.
    The page is a search screen, when the search button is clicked i create
    a filterexpression on the fly based on data on the screen.
    When the screen comes back up the data is filtered as it should. But if
    the users wants to view a second page of results an clicks one of the
    paging buttons, my filter expression is discarded.

    How do i make my filter expression stay with the datasource?
     
    lewis, Jan 10, 2007
    #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. Replies:
    1
    Views:
    7,447
    Markus
    Aug 25, 2005
  2. Henry Habermacher [MVP Access]

    GridView - Changing FilterExpression of SQLDataSource and Paging

    Henry Habermacher [MVP Access], Jan 20, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    11,031
    kmarchiony
    Jul 31, 2007
  3. Replies:
    0
    Views:
    3,081
  4. lewis
    Replies:
    0
    Views:
    454
    lewis
    Jan 9, 2007
  5. jobs
    Replies:
    1
    Views:
    1,214
    =?Utf-8?B?SmFzb24gVmVybWlsbGlvbg==?=
    Jan 29, 2007
Loading...

Share This Page