foreach (GridViewRowInfo dr in gvMovies.Rows) if (dr.Cells[2].Value = true) MessageBox.Show("Row " + dr.Index + " selected");
foreach (GridViewRowInfo dr in gvMovies.Rows) if ((bool)dr.Cells[2].Value = true) MessageBox.Show("Row " + dr.Index + " selected");
foreach (GridViewRowInfo dr in gvMovies.Rows) if (Convert.ToBoolean(dr.Cells[2].Value) = true) MessageBox.Show(dr.Cells[2].Value + " Rows " + dr.Index + " selected");