While adding checkbox to Grid also add one attribute for CustomerID in it.
So when you check/uncheck any checkbox then find CustomerID of it and using jQuery
selectors[
^] find other checkboxes having same CustomerID and check/uncheck them.
Check sample on jsFiddle
http://jsfiddle.net/xqQUr/[
^]