Number
90
90
or
Number
90
80
this code is working .
for (int i = 0; i < dataGridView1.Rows.Count - 1; i++) {if my grid has a this value ;
for (int ii = i + 1; ii < dataGridView1.Rows.Count; ii++)
{
if (dataGridView1.Rows[i].Cells[0].Value.ToString() == dataGridView1.Rows[ii].Cells[0].Value.ToString())
{
MessageBox.Show("Test");
}
else
{
MessageBox.Show("mest");
}
}
}
}
Number
90
80
70
80
90
80
above code in looped and not working .
Demir ACAR
27-May-2014how to skip same value of first
So
10 -- skip this
10 -- Duplicate
10 --Duplicate
20 -- Skip this
20 --Duplicate
20 --Duplicate
Thanks .
Manmohan Jha
27-May-2014Demir ACAR
23-May-2014Manmohan Jha
23-May-2014