I'm attempting to set the TabStopMode in some way via binding. After attempting several ways of doing this that didn't work I'm now attempting to use a converter.
My GridViewDataColumn definition looks like this.
StepIsReadOnly is a property in the object the row is bound to so it's at the same level as RequestedQty.
The problem is that when i run this i get the following in the Immediate Window.
It looks like the binding for TabStopMode is looking at the overall data context (view model) for the window instead of at the data context for the row.
Thanks,
Dave
My GridViewDataColumn definition looks like this.
<
telerik:GridViewDataColumn
x:Name
=
"RequestedQty"
DataMemberBinding
=
"{Binding RequestedQty, StringFormat='n'}"
Header
=
"Req Qty"
Width
=
"75"
TextAlignment
=
"Right"
HeaderTextAlignment
=
"Right"
TabStopMode="{Binding StepIsReadOnly,
Converter={StaticResource BooleanToTabStopModeConverter}}"/>
StepIsReadOnly is a property in the object the row is bound to so it's at the same level as RequestedQty.
The problem is that when i run this i get the following in the Immediate Window.
System.Windows.Data Error: 40 : BindingExpression path error: 'StepIsReadOnly' property not found on 'object' ''BatchFixDataEntryViewModel' (HashCode=24249959)'. BindingExpression:Path=StepIsReadOnly; DataItem='BatchFixDataEntryViewModel' (HashCode=24249959); target element is 'GridViewDataColumn' (HashCode=19523191); target property is 'TabStopMode' (type 'GridViewTabStop')
It looks like the binding for TabStopMode is looking at the overall data context (view model) for the window instead of at the data context for the row.
Thanks,
Dave