onClick from Text of a Table filters a Repeater

I created a HTML code table and would like to be able to filter the repeater at the bottom based on which cell you click the text in the table. For example if you click any of the cells in the table under the 2nd Grade column then it will filter the repeater and only show the database results that contain ‘2’ in the grade field.

Ultimately I would like to pass filter based on the grade row and the types of activities column on the left side. The database will be full of activities and I would like people to be able to click on a cell and it filter all the activities and only show the ones for Comprehension at a 2nd grade level, for example.

Is this possible?