I have a datatable and I want to filter this table with a company name. But it gave this error:
Syntax error: Missing operand after ‘s’ operator.
My code is like this:
DataRow[] rowList = resultDt.Select(string.Format(" [{0}] = '{1}'", resultDt.Columns["Company"], "Dyn's"));
What is be the problem?
The problem is "
Dyn's". Can you use\'instead of'? That apostrophe is why the problem is occurring.