You can handle the button's Click event and in there retrieve a reference to the grid's CurrentItem (the button that was clicked will be located in the current item). From there, you can access the grid's Items collection and get the index of the current item using IndexOf.
Technical Writer - Xceed Software
Of all the things I've lost, I miss my mind the most. - Mark Twain