I am building the grid dynamically and putting the buttons in one of the columns. When I click the button, I want to know which line of my grid. How can I find this?
In the Click event handler for the button, you say:
int row; Button btn = sender as Button; if (btn != null) { row = Grid.GetRow(btn); // And you have the row number... } else { // A nasty error occurred... }