In 1779 the northern part of the county became Montgomery County , and the part east of the Pee Dee River became Richmond County . In 1779 the northern part of what remained of Anson County became Montgomery County , and the part east of the Pee Dee River became Richmond County .