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

When I try to send data from one table to another, I get an error

I get exact duplicate rows in access when I add data from a third table to the query

Jmeter : Error when I try to get data from Database using beanshell assertion

KOTLIN/FIREBASE Error when I try get data from firebase database - Client is offline

PHP undefined variable when I try to extract data from database

Binding a List<MyObject> to a DataGrid? When I try I get a "TargetInvocationException"

How to select duplicate columns data from table

ViewModel return clear object when i try to get data from it

404 ERROR when I try to GET data from google spreadsheet

Project freezes when I try to get data from api

I get a duplicate empty file when I try to read the original

First data not showing when I get data from a MySQL database

error when I try to fill table with data

table is not displaying, when i pull data from database

How can I get data from database into HTML table?

Connected to the database but through error when I try to insert into database table

Duplicate data when joining sql pivot table with columns from other tables

Why do I get an error (Notice: Undefined index) when I try to echo a value from my database?

Get all columns of a table from a different database

Why am I getting an error when I try to get a string from my table in a Jframe?

Why do I get an Error when I try to rename a table after FROM?

Why do i get duplicate values when adding data to firebase realtime database using kotlin?

Why are there so many duplicate columns when I draw histograms from .csv data using R?

When I try to echo data from database using php my html page breaked

Preventing duplicate columns when merging with data.table

Multiple instances of IEntityChangeTracker error get when try to insert data into database in c#

C# Showing all rows from a database table to DataGrid

When i try to get data from data for edit page it's showing me error

I get error when delete data from my table