Try this code
bool Status = false;
foreach (DataGridViewRow row in DataGridView2.Rows)
{
for (int i = 0; i < DataGridView2.Columns.Count; i++)
{
if (DataGridView1["ColumnIndex", "RowIndex"].Value == DataGridView2[i, row.Index].Value)
{
Status = true;
break;
}
}
}
if (Status == true)
{
}
else
{
}
Thanks & Regard
Sham :)