grip003
Well-known member
I am trying to use the DataTable.Select statement and the selection criteria is a string that contains an apostrophe. It looks like this
the invoice_num is a string that holds @"tests inv".
I have tried setting invoice_num=@"test[]s inv" and invoice_num=@"test\s inv" but that doesnt work either. Can anyone help me on this?
Code:
DataRow[] rows = ds.Tables["MyTable"].Select("Invoice=" + invoice_num + "");
I have tried setting invoice_num=@"test[]s inv" and invoice_num=@"test\s inv" but that doesnt work either. Can anyone help me on this?