Elgar made 128 not out, his ninth Test century, and put on 196 for the first wicket with debutant Aiden Markram, who was run out for 97 as the Proteas closed on 298 for one.
Hashim Amla was unbeaten on 68 after he and Elgar added 102 for the second wicket.
Home captain Faf du Plessis could not hide his surprise after his Bangladesh opposite number Mushfiqur Rahim won the toss and asked the hosts to bat first.
Du Plessis said at the toss he was "very surprised" by Rahim's decision. "It looks a little bit dry. I definitely would have batted. It looks a really good pitch and I expect it to spin later on."
There was none of the early life that Rahim had hoped would assist his three seam bowlers.
His only specialist spinner, Mehidy Hasan, was brought in as early as the sixth over.
The pitch played easily all day, although the dry nature of the surface was shown by some balls which kept low. Bangladesh soon settled for defensive fields and they were able to keep the scoring rate under control.
Elgar and Markram were largely untroubled as they ticked off several milestones.
Markram, 22, who captained South Africa to the 2014 Under-19 World Cup title, was Elgar's fourth opening partner of the year and together they posted South Africa's first half-century start in 16 innings before converting it into three figures shortly after lunch, the first century opening stand since December.
Markram made 97 off 152 balls, with 13 fours, before there was a mix-up when both players were approaching their centuries in what proved to be the last over before tea.
Two balls later, Elgar reached his century off 176 deliveries.
South Africa's dominance continued when Amla joined Elgar, although Elgar's scoring dried up in the last hour as he appeared to be battling with cramp.
The closest a Bangladesh bowler came to taking a wicket was when part-timer Sabbir Rahman could not hold a ferocious straight drive from Amla when the batsman was on 40.
Markram's 97 was the highest score for a batsman run out in his first Test innings. Abdul Kadir of Pakistan (95) and West Indies' Gordon Greenidge (93) were also run out in the nineties.
Disclaimer: No Business Standard Journalist was involved in creation of this content
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
