Dextran-based gels bearing two types of pendant N, N-dimethyl-N-alkyl-N-(2-hydroxypropyl) ammonium chloride groups with different alkyl chain length substituents (C2 and C12/C16, respectively) at the quaternary nitrogen were synthesized and structural characteristics of the compounds were studied by elemental analysis, potentiometric titration, FTIR and NMR spectroscopy. The morphology and size of polymeric microspheres were examined by SEM and their swelling behavior in water was also investigated. The hydrogels were evaluated as sorbents for sodium cholate (NaCA) and sodium deoxycholate (NaDCA) in water and 10 mM NaCl solutions. Different isotherm models (nearest-neighbor-interaction, Langmuir, Freundlich, Dubinin-Raduskevich, Sips and Hill) were used to elucidate the adsorption mechanism and established the characteristics of the most efficient polymeric sorbent. The maximum adsorption capacity of the gels was highly controlled by gel hydrophobicity which enhanced gel-bile salt affinity but decreased binding cooperativity. Swelling porosity, ionic strength and ligand lipophilicity were other factors that also affected the adsorption process. The hydrogel having 25 mol% pendant dodecyl groups retained the maximum amount of bile salts (1051 mg NaCA/g and 1138 mg NaDCA/g). All hydrophobically modified hydrogels revealed a better affinity and strength of binding compared to commercial Cholestyramine®.