An alcoholic solution of a partially quaternarized polyvinylpyridine polymer is provided. The alcoholic solution has iocidal and biocompatibility properties. The alcoholic solution is ready-to-graft in order to confer biocidal properties on various surfaces and to prevent biofilm formation on such surfaces.