To build an electric grid costs USD 2 million per km of transmission lines, and between USD 200,000 per km up to USD 1 million per km of distribution lines. This includes transformers costs.
If you want to know more, please go here. This data was sourced from the book Transportation and the Belt and Road Initiative, in which more data as well as the original primary sources of the data are available.