Suppose the "select" checkboxes are at column 1(index 0). Following is the sample code. Just modify it and give it a try.
function ConfirmEdit()
{
vargrid = document.getElementById("<%= gvItemCategory.ClientID %>");
var cellToCheck;
var count = 0;
if (grid.rows.length > 0)
{
for (i=1; i<grid.rows.length;>{
cellToCheck = grid.rows[i].cells[0];
for (j=0; j<celltocheck.childnodes.length;>{
if (cellToCheck.childNodes[j].type =="checkbox")
{
if(cellToCheck.childNodes[j].checked == true)
count++;
}
}
}
}
}
The line in bold is used for checkboxes in column "0".