Jagjit Saini

Jagjit Saini

  • NA
  • 196
  • 38.2k

Datatable asEnumerable

Mar 16 2022 4:38 PM

Hi

var filtered = dt0.AsEnumerable()
                        .Where(r => r.Field<String>("Id").Contains(col[2].ToString()));

I want Id value to be saved in Datatable of those records where Id matches col[2]

Thanks


Answers (5)