Capture button click in datagrid

Discussion in 'ASP .Net' started by Lloyd Sheen, Sep 29, 2004.

  1. Lloyd Sheen

    Lloyd Sheen Guest

    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
     
    Lloyd Sheen, Sep 29, 2004
    #1
    1. Advertising

  2. Lloyd Sheen

    Ben Lucas Guest

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

    --
    Ben Lucas
    Lead Developer
    Solien Technology, Inc.
    www.solien.com

    "Lloyd Sheen" <> wrote in message
    news:eek:...
    > 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
    >
    >
     
    Ben Lucas, Sep 29, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Purvi T
    Replies:
    0
    Views:
    846
    Purvi T
    Oct 19, 2004
  2. =?Utf-8?B?RmVuZw==?=
    Replies:
    1
    Views:
    9,897
    Scott M.
    Nov 1, 2005
  3. Amy
    Replies:
    0
    Views:
    991
  4. Replies:
    0
    Views:
    427
  5. Darren Wooding

    Capture the click event of a template link button

    Darren Wooding, Dec 31, 2003, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    136
    Darren Wooding
    Jan 3, 2004
Loading...

Share This Page