Hi,
I'm using dxg:GridControl for my WPF application, which is binding the bank details which status will be active or deleted, for active banks, I would like to have Edit and Delete action when I right click the row, but for deleted banks, I only would like to have Edit action, may I know if there is any approach to only show Edit for those deleted banks. Thanks a lot!
C#<dxg:GridControl ItemsSource="{Binding BankSource">
<dxg:GridControl.View>
<dxg:TableView AutoWidth="True" AllowPerPixelScrolling="True" ShowGroupPanel="False" AllowFilterEditor="False" ShowGroupedColumns="True"
BestFitMode="Smart" BestFitArea="All" ShowHorizontalLines="False" AllowEditing="False" NavigationStyle="Row" AllowHorizontalScrollingVirtualization="False" FadeSelectionOnLostFocus="False"
ShowIndicator="False" FocusedRow="{Binding Path=SelectedBank, Mode=TwoWay}">
</dxg:TableView>
</dxg:GridControl.View>
<dxg:GridControl.ContextMenu>
<ContextMenu>
<MenuItem Name="mnuEdit" Header="Edit ..." Command="{Binding UpdateBankCommand}" CommandParameter="{Binding SelectedBank}"/>
<Separator/>
<MenuItem Name="mnuDelete" Header="Delete" Command="{Binding DeleteBankCommand}" CommandParameter="{Binding SelectedBank}"/>
</ContextMenu>
</dxg:GridControl.ContextMenu>
<dxg:GridControl.Columns>
<dxg:GridColumn FieldName="name" Header="Bank Name" Width="80" />
<dxg:GridColumn FieldName="acctNum" Header="Card Number" Width="250" />
<dxg:GridColumn FieldName="acctName" Header="Holder Name" Width="90" />
<dxg:GridColumn FieldName="StatusDesc" Header="Status" Width="70" />
</dxg:GridControl.Columns>
</dxg:GridControl>