Assuming I want productCode variable below to be assigned the product code of a product named Cookie\'s
productCode
Cookie\'s
NOTE the \"\'\" in the the Prod
Prod
Double up any single quotes like this
...dt.Select("[ProductName] = '" + filterValue.Replace("'", "''") + "'")[0]["ProductCode"]