Use the Items property to get the rows in the datagrid, then iterate over them. For each row, use the FindControl method to get the checkbox control on that row and then use the Checked property.