Which button was clicked on GridView

Discussion in 'ASP .Net Datagrid Control' started by Yossi, Nov 17, 2006.

  1. Yossi

    Yossi Guest

    I have GridView with several text columns and 2 buttons. How do I determine
    which button on which row was clicked.

    I am able to detect a button clicked if I set the CommandText to "Select".
    All I have to do is write an event handler for the SelectedIndexChanged
    event and I get to know on which row the button was clicked. But how do I
    tell whether the first or second buttons where clicked?
    Yossi, Nov 17, 2006
    #1
    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. =?Utf-8?B?RGF2ZQ==?=

    Detect which button was clicked?

    =?Utf-8?B?RGF2ZQ==?=, Feb 26, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    2,425
    =?Utf-8?B?U3VyZXNo?=
    Feb 26, 2004
  2. Amadelle
    Replies:
    6
    Views:
    6,880
    Ireney Berezniak
    Jun 21, 2004
  3. bthumber
    Replies:
    4
    Views:
    458
    bthumber
    Jun 25, 2010
  4. Yossi

    Which button was clicked and on which row?

    Yossi, Nov 17, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    730
    Yossi
    Nov 17, 2006
  5. Jim Mitchell
    Replies:
    0
    Views:
    187
    Jim Mitchell
    Jul 12, 2003
Loading...

Share This Page