The Flathead Electric Cooperative received a $4,283,979 federal grant to upgrade the electric system in the Cooke City area.