Hello friend I have a problem with a table I have a field called names inside this table and I have a list of names which I want to exclude from the table based on the name field. I have the following but it doesn't work for me.
var DataRows = Tabla.AsEnumerable().Where(item => item["Nombre"].ToString().Distinct().Where(nombre=> ListaNombres.ForEach()))
You should check if the string list exists in your item element, with
Any()
, in this case we add aNOT
, which would return us that if the item exists it does not add it