You didn't show the grid code above.But I hope you're having a problem where the way you access the hidden field.
You can access your hidden field is as below (this is a sample):
Declare Hidden Field - HTML
<input name="hiddenField" type="hidden" value="5" id="idHidden"/>
Access it from JS
var hiddenFieldValue = $("#idHidden").val();
Out put = 5
Note : Change above according to you situation.