Filter Data Table with .select

I am trying to filter a data table using .select, but the image error occurs.

I did:
dtListaDosCursos.Select("[Início] > ‘10/08/2020’")

Thanks for help.

@Sergio_Augusto_Pereira
give a try on dtListaDosCursos.Select("[Início] > ‘10/08/2020’").CopyToDataTable

In case of empty filter results are to expect have a look here:
dtListaDosCursos.Select("[Início] > ‘10/08/2020’").ToList (returns a list of datarows)
with checking the count of the returned list(Of Datarows) in an if activity it can be handled as:

0 drFilteresultListDatarowVar.CopyToDataTable
else: drListaDosCursos.Clone

Keep in mind that you want to filter against a date. have a look here on how the surrounding # will help:
DT_Select_ByDate.xaml (6.4 KB)
https://www.csharp-examples.net/dataview-rowfilter/

Thanks!!!

I needed to change the type of the variable too.

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