C# - WPF - How To Bind DataTable To DataGrid Control

preview_player
Показать описание
Learn how to populate DataGrid control by using DataTable object in C# - WPF framework..
Рекомендации по теме
Комментарии
Автор

Thank you very much. I spent several hours trying to figure it out. Your video finally helped me with this.

PavelS-mr
Автор

Easy, short and straight to the point

damianjankov
Автор

This is not binding in WPF. It is the old way of doing things in window forms and here we are talking about WPF.

ashishmasih
Автор

Nice Work but much better to use database, , do you live in Baghdad?

haydarm.al-samawe
Автор

Hi Safaa, your video tutorials are excelents. I would like your help with a problem filling a datagrid in WPF. Following this video, I filled a datagrid from a database as you did, but I need to transpose this table so I programmed a loop to transpose my table but the new datagrid only shows the columns header and the name of all rows as I wanted, but no data is inside the table. With winforms I managed to transpose my table as I wished, but in WPF didn't work. What is the problem, could you help me?

Hprato
Автор

Hi, thanks for this video. Is it possible to set the name of the DataColumn with a local variable ?
For exemple :
string variable = "name";

DataColumn dc = new DataColumn(name, typeof(int)); ??

Thanks :)

StoriesSims