I have added dropdownlist to templated column's fotter. How to fill it with data form other DB (not from container)?

Simply I do not know where should I insert my code.