dotnet / DataGridExtensions

Modular extensions for the WPF DataGrid control
MIT License
811 stars 103 forks source link

Caliburn/ninject and Binding Filter #95

Closed Frenchy62620 closed 1 year ago

Frenchy62620 commented 1 year ago

Hi, i have a problem to bind Filter. I m using Caliburn with ninject but when i want to bind multival, i have this error : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=multival; i suppose its a problem of datacontext.. how i could bind filter to DataGridviewModel without this error?

code in my DataGridView

        <DataGridTextColumn
                            Header="test" Binding="{Binding type}" 
                            dgx:DataGridFilterColumn.Template="{StaticResource MultipleChoiceFilter}"
                            dgx:DataGridFilterColumn.Filter="{Binding multival}"
tom-englert commented 1 year ago

This is not a bug in DGX.

With the provided code snippet I can't say what you are doing wrong here, since it's out of context.

Maybe better ask this on Stack Overflow, since it's a general question about how to do data binding correctly.