Groups | Blog | Home
all groups > asp.net webcontrols > november 2003 >

asp.net webcontrols : OnItemCommand and Paging in DataGrid


Sink
11/28/2003 5:34:16 AM
I just changed a hyperlink column to a button column,
added an OnItemCommand so that I could better control
my screen stack. Lo and behold, it worked fine except my
paging no longer works. It appears that OnItemControl is
being called before paging event and all is lost.
Sink
11/28/2003 6:11:12 AM
In the OnItemCommand handler, I added the following
at the beginning of the routine:

if(e.Item.ItemType == ListItemType.Pager)
return;

The paging handler them is called and all is well.

[quoted text, click to view]
AddThis Social Bookmark Button