The South African units of BMW and Nissan will build a national grid for electric and hybrid cars to expand sales of vehicles that could reduce pollution in Africa's top auto market.