Danville’s population has increased slightly since 2010 and will see a small rise through 2040, while Pittsylvania County’s has declined and will likely stagnate over the next three decades, according to estimates and projections from the University of Virginia.