syntax for filter in datatable.select

  • Thread starter Thread starter moondaddy
  • Start date Start date
M

moondaddy

Where can I find documentation for the syntax allowed in the filter used in
datatable.select("some filter")?

I want do something like this:

dim str as string = "men"

datatable.Select("colName Like "*" & var & "*")

which would allow data like

mentor
document
etc.

Thanks.
 
If you are using Visual Studio, just click somewhere in the word "select"
(you don't have to select the whole word, just click into it) and press F1.
That's the fastest way to learn about any .NET keyword, class, or class
memeber.
 
Hello Moondaddy,

According to your description, you want to know what syntax is allowed in
DataTable.Select() method. If I misunderstood anything here, please correct
me.

FilterExpression argument uses the same rules that apply to the DataColumn
class's Expression property value for creating filters. Thus, I suggest you
may refer to the document for Datacolumn.Expression. You will find syntax
what are allowed in FilterExpression in there.

http://msdn2.microsoft.com/en-us/library/system.data.datacolumn.expression.a
spx
[DataColumn.Expression Property]

Hope this helps. Please feel free to update here again. If there is
anything unclear, we are glad to assist you.

Have a great day,
Best regards,
Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Your are welcome. I'm glad to hear it's helpful.:)

Have a great day,
Best regards,

Wen Yuan
Microsoft Online Community Support
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top