Rather than doing it through code, you can put the opacity of the button to zero and once someone touches that table or row anything, make it one for that time. This should solve your case.