|
-
Jan 16th, 2004, 08:48 AM
#1
Thread Starter
Addicted Member
RESOLVED: URGENT please, select from datatable?
I have one datatable DT (id, name) and I want with dataview DW to select records:
dim DW =new DataView(DT)
dw.RowFilter="name='exp's'"
I got error because in rowfiler has apostrophe ( in datatable there is names with apostrophe). How to present apostrophe in rowfilter string?
Thanks in advance.
regard j
Last edited by janis; Jan 16th, 2004 at 10:31 AM.
-
Jan 16th, 2004, 09:04 AM
#2
Hi.
Not sure, but try this : dw.RowFilter="[exp's]"
I wish I could think of something witty to put in my sig...
...Currently using VS2013...
-
Jan 16th, 2004, 09:17 AM
#3
Thread Starter
Addicted Member
Originally posted by pax
Hi.
Not sure, but try this : dw.RowFilter="[exp's]"
Not working.
Anybody else?
regard j
-
Jan 16th, 2004, 09:49 AM
#4
Addicted Member
I think either one will work
VB Code:
dw.RowFilter="name='exp''s'"
or
dw.RowFilter="name=""exp's"""
See you,
-Jai
[Friends Never Say Good Bye]
-
Jan 16th, 2004, 10:32 AM
#5
Thread Starter
Addicted Member
Originally posted by Jaiboy
I think either one will work
VB Code:
dw.RowFilter="name='exp''s'"
This is a solution, just like in MSSQL Server.
regard j
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|