Hi
C#
var filtered = dt0.AsEnumerable()
.Where(r => r.Field("Id").Contains(col[2].ToString()));I want Id value to be saved in Datatable of those records where Id matches col[2]
Thanks
Hi
var filtered = dt0.AsEnumerable()
.Where(r => r.Field("Id").Contains(col[2].ToString()));I want Id value to be saved in Datatable of those records where Id matches col[2]
Thanks
Know the answer? Post it. Somebody with the same question will find it here.

Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Mar 16, 2022, 10:42 PM EDT
Jagjit SainiRank #6,453 · 266 reputationPosted Mar 17, 2022, 9:34 AM EDT
Muhammad Imran AnsariRank #326 · 7.6K reputationPosted Mar 17, 2022, 10:22 AM EDT
Gajendra JangidRank #157 · 14.9K reputationPosted Mar 21, 2022, 10:49 PM EDT