String value = "Rubens' Home"; // value you want to sanitize and search dt.Select(String.Format( "Location = '{0}'", value.Replace("'", "''")));