Write Sum at the end of every column where there is data using DataTable or Excel directly

@Robinnavinraj_S thanks for your prompt reply.

I am getting this error message
image

To overcome this issue - I went through the following post (AsEnumerable is not a member of 'System.Data.Datatable' - #3 by lucas.mcgonagle) , but I get error message when I open Main.xaml