Custom Control inheriting from DataGrid - SortCommand, PageIndexChanged not working

Discussion in 'ASP .Net Building Controls' started by Ole, Feb 10, 2004.

  1. Ole

    Ole Guest

    Hi everybody,
    i have a custom control that inherits from
    System.Web.UI.WebControls.DataGrid.
    I added filtering functionality. The problem i have is as follows:

    the control ( FilterGrid ) is used in a aspx page. The Control is
    created
    when the user presses a button ( lets say "btn_productlist" ). When
    this
    button ( System.Web.UI.WebControls.Button ) is pressed, the FilterGrid
    is
    displayed as expected.



    But as the default, as well as the additional filter functionalities
    are used
    ( pressed, e.g. a click on a header cell / link to sort the grid ),
    the FilterGrid is not shown anymore.

    When the user then presses the button "btn_productlist" again, the
    FilterGrid
    shows up again, sorted !

    How is it possible to solve this problem ? EventBubbling ?

    Thanks in advance,

    Ole Viaud-Murat.
     
    Ole, Feb 10, 2004
    #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. Rick Strahl [MVP]

    PageIndexChanged not firing in DataGrid

    Rick Strahl [MVP], Nov 21, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    5,943
    rohit.shrivastava04@gmail
    Aug 11, 2009
  2. Rubble
    Replies:
    3
    Views:
    725
    Alvin Bruney [MVP]
    Mar 5, 2004
  3. Will McKee
    Replies:
    0
    Views:
    2,344
    Will McKee
    Feb 23, 2004
  4. Kilic Beg
    Replies:
    0
    Views:
    156
    Kilic Beg
    Jun 8, 2004
  5. biru
    Replies:
    2
    Views:
    231
Loading...

Share This Page