I have this : onkeydown="if ((event.which && event.which == 13) ||
(event.keyCode && event.keyCode == 13))
else return true;"
in a usercontrol to handle enter and it works perfect. I want to add the above in the codebehind of a gridview that dynamically adds a button onrowbound to every row. I know how to add the above using attributes.add. What I need help with is how to figure out what the name of the button is on each row?
Bottom line is I need to handle enter for each row in this gridview. Thanks.