How to add context menu to wpf datagrid?

<DataGrid>
    <DataGrid.ContextMenu>
        <ContextMenu>
            <MenuItem Header="Click Me" Click="MenuItem_Click" />
        </ContextMenu>
    </DataGrid.ContextMenu>
</DataGrid>