I guess you are trying to access the CheckBox inside a GridTemplateColumn in code behind. If so you may try the following code snippet to achieve the desired scenario. If not you may consider sending your aspx page.
//here is the code to access template controls in code behind
ASPX: