I want to disable the cell/Column based on some business logic. I am using ShowingEditor
event and ShowingEditorEventArgs
to cancel it. Passing ShowingEditorEventArgs
would be excellent.I am able to pass the full grid as an argument. using below code. But i just want to pass ShowingEditorEventArgs
of selected cell.May be some relative resource binding help me out here.
<dxg:GridControl x:Name="grid" >
<dxg:GridControl.View>
<dxg:TableView Name="view" ShowingEditor="view_ShowingEditor">
<i:Interaction.Triggers>
<i:EventTrigger EventName="ShowingEditor">
<i:InvokeCommandAction Command="{Binding ShowingEditorCommand}" CommandParameter="{Binding RelativeSource={RelativeSource AncestorType={x:Type dxg:GridControl}}}" />
... Note:
- I can't use MVVM light(GalaSoft).
interactions are not giving me CallMethodAction.
xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" <ei:CallMethodAction
I don't want to pass the binded property of
ViewModel
(e.g.SelectedItem
)- Using DevExpress GridControl