Capture button click in datagrid

  • Thread starter Thread starter Lloyd Sheen
  • Start date Start date
L

Lloyd Sheen

I have created a button in a datagrid :
<asp:ButtonColumn Text="Shipped" ButtonType="PushButton" HeaderText="Update
to Shipped" CommandName="Shipped"></asp:ButtonColumn>

Now I want to capture the event in server code when the button is clicked.
I have tried all sorts of events under the datagrid but none of the events
is fired.

Lloyd Sheen
 
The event you are looking for is the ItemCommand event in the Datagrid.
 

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