In your button's onclick event, loop through the gridview. Find the control binded with Yes/No, use this control in an IF statement,
foreach(GridViewRow gvRow in Gridview1.Rows)
{
Label Label1 = (Label)gvRow.FindControl("Label1");
if (Label1.Text =="YES")
{
}
}