Results 1 to 5 of 5

Thread: RESOLVED: URGENT please, select from datatable?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234

    Question 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.

  2. #2
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    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...

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234
    Originally posted by pax
    Hi.

    Not sure, but try this : dw.RowFilter="[exp's]"
    Not working.
    Anybody else?

    regard j

  4. #4
    Addicted Member
    Join Date
    Nov 2003
    Location
    India
    Posts
    227
    I think either one will work
    VB Code:
    1. dw.RowFilter="name='exp''s'"
    2.  
    3. or
    4.  
    5. dw.RowFilter="name=""exp's"""
    See you,
    -Jai
    [Friends Never Say Good Bye]

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Aug 2002
    Location
    top of the mountain
    Posts
    234
    Originally posted by Jaiboy
    I think either one will work
    VB Code:
    1. 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
  •  



Click Here to Expand Forum to Full Width