Hi,
I have a button that launch a specifi command inside a column of my datagrid, in the details part of a master-details.
The button command is define as also :
Command="{Binding DataContext.SupprimerVilleCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type syncfusion:SfDataGrid}}}"
But the command is never launched, and an error is displayed in Visual Studio output window :
System.Windows.Data Error: 40 : BindingExpression path error: 'SupprimerDepartementCommand' property not found on 'object' ''EntityCollection`1' (HashCode=39200294)'. BindingExpression:Path=DataContext.SupprimerDepartementCommand; DataItem='DetailsViewDataGrid' (Name=''); target element is 'Button' (Name=''); target property is 'Command' (type 'ICommand')
What is the correct AncestorType to specify in this case ?
Thanks for your help.
Regards,