the code to get the database and show it on the datagrid in this image
as shown in the image it duplicate the columns ,one with renamed headers and the other one with same headers from database table
I just want those with renamed headers without duplicate ?
Set AutoGenerateColumns to false. You have prepared your columns in xaml so you do not want to code generate them for you