Hi,
I have the following context menu for rows of the Data Grid.
<ContextMenu x:Key="cm_rowMenu">
<!--ContextMenu For Row-->
<MenuItem Header="Edit Info."
Click="mnuEditInfo_Click"
/>
<MenuItem Header="Delete"
Click="mnuDeleteDevSoftware_Click"
/>
<MenuItem Header="Check In"
Click="mnuCheckIn_Click"
/>
</ContextMenu>
<Style x:Key="DefaultRowStyle" TargetType="{x:Type dg:DataGridRow}">
<Setter Property="ContextMenu" Value="{StaticResource cm_rowMenu}" />
</Style>
However, I want to make the following change:
I want the menu items to be enabled/disabled based on properties of the dataGrid.SelectedItem. How do I do this ?
Best regards, MadSeb