Help with Linq

Hi, i’m learning how to use Linq. Can anyone help me with this error?

dtIG004 is a datatable

Hi @guilherme.dias

What is the requirement? (Input and Output)

Please go through this post by @ppr for learning the LINQ

1 Like

@guilherme.dias Try this

(From row In dtIG004
Group row By a = row("your column name").ToString.Trim Into grp = Group
Select grp.First).CopyToDataTable
1 Like

Thanks for the help @ushu after a long time looking for something biggier i’ve found this little mistake :smile:

1 Like

Thanks for the help @kumar.varun2 this article helped me to complete my query

image

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.