M
marcin
Hello,
How can I use special characters % and * in DataView.RowFilter
expression in which I have already LIKE statement?
I am using a DataView to displaying a records from datatable, I allow
users to enter the string which will be pasted into RowFilter in such way
MyDataView.RowFilter= myColumn LIKE '%"+MyTextBox.Text+"%'";
The problem is when user enters string which contains % or * I get an
exception:
System.Data.EvaluateException: Error in Like operator: the string
pattern ' ' is invalid.
DataTable can contain strings with those characters and users must be
able to define filter with them.
Tomasz
How can I use special characters % and * in DataView.RowFilter
expression in which I have already LIKE statement?
I am using a DataView to displaying a records from datatable, I allow
users to enter the string which will be pasted into RowFilter in such way
MyDataView.RowFilter= myColumn LIKE '%"+MyTextBox.Text+"%'";
The problem is when user enters string which contains % or * I get an
exception:
System.Data.EvaluateException: Error in Like operator: the string
pattern ' ' is invalid.
DataTable can contain strings with those characters and users must be
able to define filter with them.
Tomasz