foreach (Selected s1 in objlistCropped)
{
bool duplicate = false;
foreach (DataRow dr in dtPreInstallation.Rows)
{
if (dr["columnName"].ToString() == "value")
{
duplicate = true;
return;
}
}
if (duplicate != true)
{
dtPreInstallation.Rows.Add(strImg2, s.strText);
}
else
{
}
}
try this..