OnItemCommand and Paging in DataGrid

S

Sink

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.
Anyone have any experiences with this?
 
S

Sink

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top