Grid question

Looking for any suggestions on how to know the column header and row header values for a checked box in a dhtmlxGrid. Example would be if I had colors horizontally and toys vertically and check boxes for all intersections, is it possible to know which combinations are selected?
Thank you in advance.

For getting the header labels you may use getColLabel() method:

For getting the the value in the first cell of the row you may use the getValue() method: