ItemCommand not working for Link Button on dynamically built grid

R

RCorona

I have a page that has one to many dynamically built datagrids on it. Each
row in each grid has a link button. When you click the button the post back
occurs but not the event handler for the button.

As I build the grid I add the event handler like so:

DataGrid dg = new DataGrid()
dg.ItemCommand += new DataGridCommandEventHandler(dg_ItemCommand)
....

Any ideas? I did try to override the OnBubbleEvent on the page but to no
avail.

Thanks
 
A

Al Cadalzo

I'm having a similar problem trying to get a SortCommand event to fire on a
dynamically added BoundColumn.
Were you able to get your event handler to work?

Thanks,
Al
 

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,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top