Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Custom Control inheriting from DataGrid - SortCommand, PageIndexChanged not working

Reply
Thread Tools

Custom Control inheriting from DataGrid - SortCommand, PageIndexChanged not working

 
 
Ole
Guest
Posts: n/a
 
      02-10-2004
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PageIndexChanged not firing in DataGrid Rick Strahl [MVP] ASP .Net 4 08-11-2009 07:38 AM
datagrid as Composite control... PageIndexChanged event don't get Fired!! Pls Help Kilic Beg ASP .Net Datagrid Control 0 06-08-2004 10:10 PM
PageIndexChanged Intermittently not working?? Rubble ASP .Net 3 03-05-2004 09:16 PM
DataGrid's PageIndexChanged Not Firing for 1st (First) Page Only!!!??? Will McKee ASP .Net 0 02-23-2004 02:57 PM
DataGrid pageIndexChanged event not firing - simple solution steve ASP .Net Datagrid Control 0 12-16-2003 07:27 PM



Advertisments