btnclick event work inside a grid

how btnclick event work inside a grid

i wrote this to get buttons every row in a grid.button comes inside the grid but 1 extra button appears top of the grid.untill i clicked the top buuton other button inside the grid doesn't work.pls help me