Are you talking about real bamboo or "Lucky Bamboo" (which is not really bamboo at all).
Real bamboo would be planted in soil....the "Lucky Bamboo" can be planted in soil as well but most people seem to keep it in water with stones to support it.
Either can be used.....I would (personally) choose to plant in soil.