When AgNO3 is added to KI,
Iodide ion gets adsorbed on the surface of AgI. This will result in formation of negatively charged colloids.
When KI is added to AgNO3 following reaction takes place.
Silver cation gets adsorbed on surface of AgI, resulting in formation of positively charged colloids.