C#/WPF - Learning the DataGrid

preview_player
Показать описание
In this live stream I focus on learning the WPF DataGrid control.


Рекомендации по теме
Комментарии
Автор

Hi, Kevin! Many thanks! It was very informative.

MyAutist
Автор

Dude just went GODMODE on DataGrid. Now that's what I'm talking about! Thank you!

willgordon
Автор

Hi Kevin, just wanted to let you know I really enjoyed the video. I appreciated you not only explaining how to implement the DataGrid's various features but also what's going on under the hood, e.g. needing to create a style that targets a TextBlock in standard mode but one which targets a TextBox in editing mode.

Adam-cemq
Автор

Hi Kevin, again this is a precious tutorial re: DataGrid!! I am wondering if you could please teach us on how to call a Community MVVM Toolkit WM's RelayCommand (eg EditUser) when the user DoubleClicks in a row and especially if the user rightclicks in a row and a ContextMenu with "Edit" and "Delete" items popup. It is easy to do that if you make use of the code behind but I find it to be rather impossible to be done directly without the use of it? I drove crazy with all these bindings and I have given up You are my one and only hope as even in StackOverflow I could not find someone that could really help. Also please be aware that I would like all of them to happen when the user double or right clicks ONLY within a row and NOT anywhere else within the datagrid.
Of course this could be the theme of anohter short youtube video. And I say "short video" because I am sure that for you this could be a piece of cake Thanx mate and keep on helping us

niangel
Автор

Great video. Thanks.
Can you please explain how to use DataGrid events with MVVM.

YassinAlHassany
Автор

Hi Kevin, thanks for the video I learnt a lot. I'm struggling to find a way to make the DataGridComboBoxColumn commit changes immediately after selection however, I have a second DataGridComboBoxColumn that is dependent on the selected item in the first. Any pointers?

jakesarkar
Автор

What about changing the background of the header based on the IsReadOnly property of the cell?

paulakwakernaak
Автор

UI becomes laggy after just 50 rows and 10 columns, is there any way to make wpf datagrid fast?, there is option in syncfusion datagrid to "EnableDataVirtualization" and its working, but in wpf any virtualization option is not working

darshanpanchal
Автор

At the 50+ minute mark you talk about the need for the Model and ViewModel to be seperate entities. A few of us have been discussing this same subject. You say that as soon as you have to start adding stuff to your Model for the View, you should wrap it in a ViewModel... I was thinking that when you create the ViewModel for the Model, that you can pass the Model in as a parameter of the ViewModel Constructor. Using Reflection you can match properties in the Model to properties in the ViewModel and pass on the values from the Model to the ViewModel... Would you also recommend having a private field in the ViewModel that represents the Model. I hope that makes sense.

ColorMyHairIs
Автор

How can i display many-to-many relational data in a DataGrid

xarxel
Автор

Where can I find your code? Thanks for the video.

alexandrufilipescu