How to get cell number of clicked template button

Hello team,
I have dynamically generated template button in gridview. These buttons generated dynamically in 20 columns. Once I clicked any of the button. I need to know the cell number in which the button was clicked.

Thanks in advance
Navneet