Hi,
I'm trying to apply the GridCheckBoxSelectorColumn in wpf with MVVM without success.
Is there any way to implement it without using code behind event?
Hi well i'm trying to access the selected items from ViewModel and i'm binding selected items from view like bellow
and in View Model i could access the selected items by PropertyChange, so i made de code in code behind
like that
and now i'm having the following error
System.ArgumentNullException:Value cannot be null.
Parameter name: changedItems
And I would like to know if is there any way to select itens from ViewModel and not for codebehind?
|
public ObservableCollection<object> SelectedItems { get; set; } |
Hi Mohanram Anbukkarasu
well i did implement as the sample sent, it worked but i'm facing an exception, my software has a menu and it changes the view and the datacontext, every time i change my view using the menu it brokes the software, i think it's because the datacontext changes
the error is
it's a null exception, value cannot be null. Parameter name changeItems, it there any solutions?
i'm not making any calling in code behind, everything is in the viewmodel
Thank you for your help
Hi thanks for the help, but even starting the collection it gave us the same error
Hi,
I had simliar problem. I had to set Binding ItemSource before SelectedItems in xaml. FYI
Regards
Ondřej Rada