Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > DataGrid_SortCommand and DataGrid_PageIndexChanged events don't get triggered

Thread Tools

DataGrid_SortCommand and DataGrid_PageIndexChanged events don't get triggered

Jamie Wang
Posts: n/a
I have a simple .NET DataGrid which I want to display in pages and allow
sorting on all the columns. It works on IIS on Windows XP machine but
doesn't work on the Windows 2003 Server machine. The DataGrid displays data
properly on the first page, but as soon as I click the page index, or click
a column heading to change to sort order, the grid disapprears. I put in
some debug code and find out that

private void myDataGrid_SortCommand(object source, System.Web.UI.WebControls.
DataGridSortCommandEventArgs e)
my custom code here

private void myDataGrid_PageIndexChanged(object sender, System.Web.UI.
WebControls.DataGridPageChangedEventArgs e)
my custom code here

never got invoked. It seems like an IIS 6 vs. IIS 5 issue. Does any one
have idea what caused this?
Reply With Quote

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
OnBeforeUpdate being triggered by asynchronous events. Microsoft Newsserver ASP .Net 3 06-24-2008 06:27 PM
Handling events triggered by dynamically created controls Nathan Sokalski ASP .Net 1 02-27-2008 11:05 PM
User-Defined and/or User-Triggered Events Richard Maher Javascript 3 03-04-2007 09:59 AM
WebPart events not triggered upon first logon Paal Berggreen ASP .Net 5 06-13-2006 05:47 PM
Buttons do postback but events are not triggered? Morten Wennevik ASP .Net 4 03-10-2006 07:25 PM