adding buttons to a datagrid

  • Thread starter Thread starter Phil Townsend
  • Start date Start date
P

Phil Townsend

I have a datagrid which is part of a web form. I need to place a button
in each row to invoke a custom method (not an update, delete, cancel,
etc.). I thought that a button in a datagrid item template raises the
ItemCommand event. however, I can get no response from the button. The
code is never reached. I have registered an event handler that points to
the method. What could I be doing wrong?
 
Phil Townsend said:
I have a datagrid which is part of a web form. I need to place a button
in each row to invoke a custom method (not an update, delete, cancel,
etc.). I thought that a button in a datagrid item template raises the
ItemCommand event. however, I can get no response from the button. The
code is never reached. I have registered an event handler that points to
the method. What could I be doing wrong?

Did you set the CommandName property of the button?

John Saunders
 

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

Back
Top