Checkbox List in template column of asp.net gridview

Checkbox List in template column of asp.net gridview

I have a checkboxlist control in a template column in a gridview.  I would like to be able to have a link button for "select all" and a link button for "unselect" on each row.  I want to this to only affect the checkboxes on this row.  How would you do this?
 
Thanks