1
Reply

How to use single quot mark ' in DataView Filter expression?

Andrzej Wegierski

Andrzej Wegierski

Nov 17 2004 9:02 AM
3.5k
I try to use string constant with ' inside to set filter expression: string myString="a'b"; myDataView.RowFilter="myField='"+myString+"'"; Of course it doesn't work because of single quotation mark inside string. How to deal with such strings? Thx in adv

Answers (1)