Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Which button was clicked on GridView

Thread Tools

Which button was clicked on GridView

Posts: n/a
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?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
One button to know which button got clicked? bthumber ASP .Net 4 06-25-2010 05:36 PM
Spring java Controller get correct data from button when "apply"button is clicked but not pressing the <Enter> key albert kao Java 1 04-10-2010 02:54 AM
Which button was clicked and on which row? Yossi ASP .Net Datagrid Control 1 11-17-2006 04:46 PM
Inconsistent behavior of an button performing a postback when a button is clicked. Mossman ASP .Net 0 12-12-2005 02:55 AM
Button Collection for Toolbar WebControl - Determinine which button was clicked Jim Mitchell ASP .Net Web Controls 0 07-12-2003 01:02 PM