Something like this?
https://www.ebay.com/itm/5pc-Screw-machine-Pin-Header-1x40-40p-pitch-2-54m-Round-pin-Gold-or-Tin-Plated-/141322622504
or this:...