Given a datagrid with a DataGridCheckBoxColumn bound to a boolean object
<datagrid .....>
<DataGrid.Columns>
<DataGridCheckBoxColumn Header="Issues" Binding="{Binding HasIssue,UpdateSourceTrigger=PropertyChanged}" />
</DataGrid.Columns>
How can I programmatically obtain the Binding Expression to be able to call UpdateTarget() ?
ie.
var expression = datagrid1.GetBindingExpression(DataGrid.**WhatProperty**);
if (expression != null)
expression .UpdateTarget();
I have also tried
var expression = BindingOperations.GetBindingExpression(datagrid1, ***`WhatDependencyObjectHere`***);