Filtering, Sorting, and Grouping w/ Collection Views - EASY WPF (.NET CORE)

Filtering, Sorting, and Grouping w/ Collection Views - EASY WPF (.NET CORE)

SingletonSean

4 года назад

19,337 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Mustafamutasim
@Mustafamutasim - 09.09.2024 23:18

Thanks!

Ответить
@omostan
@omostan - 01.08.2024 22:06

As always, this is another awesome tutorial. Thank you very much for the great explanation 👍

Ответить
@nikolaidavydov7523
@nikolaidavydov7523 - 15.06.2024 14:31

thanks! perfect lesson

Ответить
@PythonHarry
@PythonHarry - 29.04.2024 02:46

explains a lot, thanks

Ответить
@MohammadGolara
@MohammadGolara - 13.03.2024 12:53

How is it possible to make a new DataGrid and show how many for example Doctor is in list?

Ответить
@basharfocke
@basharfocke - 05.01.2024 01:17

another perfect lesson.

Ответить
@amryakout2957
@amryakout2957 - 19.02.2023 07:45

I want to make filtering to datagrid with datatable or dataview not observable collection.i try it but the datagrid didn't updated anywhere

Ответить
@amryakout2957
@amryakout2957 - 18.02.2023 13:23

Great work 👏

Ответить
@user-xg7hi5mh3g
@user-xg7hi5mh3g - 25.10.2022 21:52

Hi thank u so much for your time&efforts here but I have a qst : List<Room> and every single Room have some Desktop so my List is a list of a list of Desktop how i could visualize all of this in a listBox with the template of subItem that mean that i see something like this:

Room a
Desktop 101
Desktop 104
Room b
Desktop 234
Desktop 123
Desktop 453
Desktop 498
Room c
Desktop 365
Desktop 908
Desktop 187
Room d
Desktop 007




Room n
Desktop 980
Desktop 1001

As we know in the list they re already grouped by a room ;)

I am using json for import the list<Room>

In a Wpf desktop app

Thank u in advice

Ответить
@kritikyorumer
@kritikyorumer - 05.07.2022 19:36

Thanks Sean!

Ответить
@2005bgva
@2005bgva - 28.05.2022 02:47

Thanks SingletonSean for this video, could you please activate subtitles? please please.

Ответить
@mrt7948
@mrt7948 - 11.02.2022 06:52

Can I dowoad the source code?

Ответить
@_SkyDancer
@_SkyDancer - 20.01.2022 19:21

How to use this CollectionView if I bind to the Model in the code-behind like this:
var newBinding = new Binding(string.Format("[{0}]", i));

var currentColumn = new DataGridTextColumn
{
Binding = newBinding,
Header = header
};
MyDataGrid.Columns.Add(currentColumn);

Ответить
@ohnomyhandleistaken
@ohnomyhandleistaken - 09.04.2021 15:29

Sean, your videos are always extremely helpful and I've learned a lot from them. I have one question: What happens if the ObservableCollection is loaded async into an async ViewModel, like in your MVVM full stack episode #4 ? Having tried this, the ObservableCollection gets hydrated after the view model is returned, so placing the CollectionViewSource initialization in the ViewModel constructor or the static "factory" method you create in that episode results in the CollectionView never getting populated. What would be an elegant solution for this ?

Ответить
@RamonWilliams
@RamonWilliams - 13.02.2021 03:21

Thanks for the video. Just a heads up that filtering can now be done using the DataGridExtensions NuGet package

Ответить
@kentswan3230
@kentswan3230 - 04.12.2020 20:52

My application views are eventually bound to a database search query collection which is a subset of the entire db as filtered by the query. This can still be a lot of data. The resulting query has many more useful column elements than I want to display at first. What I actually would actually like to be able to do is selectively enable a subset of those data columns making them visible then have a user control which can dynamically enable/disable the visibility of other columns having useful data by using some sort of column enable/disable visibility selector mechanism.

Ответить
@iftaker1
@iftaker1 - 23.11.2020 17:26

I was wondering if you can apply the same concept on Treeview?

Ответить
@riyadamrani
@riyadamrani - 22.11.2020 22:04

Much needed tutorial thank you !

Ответить
@laljigoti3711
@laljigoti3711 - 22.11.2020 13:08

love your contribute and learnt a lot...first time I have spended thru paypal @lalji Goti ....Thanks

Ответить
@longuinni
@longuinni - 21.11.2020 23:38

Really nice!! I did something very similar in my application. But how to highlight the search text? Maybe a style inside the xaml listview?

Ответить
@ShinyBorel
@ShinyBorel - 21.11.2020 21:16

Very nice video, have you found a good solution for sorting groups? The best way I've got is making sure to populate the collection in the right order. But that's not dynamic or often even possible.

Ответить
@VinuP2023
@VinuP2023 - 21.11.2020 20:11

Thank you so much for making this video. :)

Ответить