This refers to both the properties of adhesion and cohesion of water. Adhesion is the sticking of water molecules with non water molecules and cohesion is the sticking of water molecules to other water molecules via hydrogen bonding. The combination of these two properties allow water to cling onto the glass surface and themselves to form droplets.