Europeans began to set up trading posts in the area of Bangladesh in the 16th century ; eventually the British came to dominate the region and it became part of British India .