Select / deselect buttons grid

I create a grid with left buttons
(like in scriptcase tutorial http://www.scriptcase.net/scriptcase-samples/tutoriais/grid/grid44.php)
I need to select or deselect them through php code.
How can reference to this buttons ???

Thanks for quick reply.