Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / November 2007

Tip: Looking for answers? Try searching our database.

syntax for filter in datatable.select

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
moondaddy - 15 Nov 2007 03:55 GMT
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.

Signature

moondaddy@newsgroup.nospam

Scott M. - 15 Nov 2007 04:51 GMT
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.

> Where can I find documentation for the syntax allowed in the filter used
> in datatable.select("some filter")?
[quoted text clipped - 12 lines]
>
> Thanks.
WenYuan Wang [MSFT] - 15 Nov 2007 08:41 GMT
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.
moondaddy - 15 Nov 2007 15:39 GMT
Thanks that was a good reference and I've added it to my bookmarks.

> Hello Moondaddy,
>
[quoted text clipped - 23 lines]
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
WenYuan Wang [MSFT] - 16 Nov 2007 05:39 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.