C# datagrid duplicate the columns when I try to get the data from database table

husham1414

the code to get the database and show it on the datagrid in this image image My Code

datagrid wpf design image My DataGrid WPF

the result image Result

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 ?

Matt

Set AutoGenerateColumns to false. You have prepared your columns in xaml so you do not want to code generate them for you

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

TOP Ranking

HotTag

Archive