Hi! I have a problem in a C# project. I am using the Select method with a DataTable object. If I put a '-' in the search string I select nothing. So here is a code sample of what I have:
DataTable table;
DataRow[] rows = table.Select("[Radio Name] LIKE '*Lounge-MP3-96*'");
But there is a column with: Radio Name = 1.FM - The Chillout Lounge-MP3-96
Have I to escape characters? How?
I've just tried
DataTable table;
DataRow[] rows = table.Select("[Radio Name] LIKE '*Lounge*'");
It works! So it seems really related to the "-"....