Actually i know how to export the data table values in pdf or excel format but i want to know how to change the format style please do the needful.
There is no way to change the styling of export from the components itself.
You can customize the server side scripts if necessary.