Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
problem of ContextMenu in xamDataGrid
posted

Hi
There is some problem by use ContextMenu in xamDataGrid,it like this

<igDP:XamDataGrid.ContextMenu>
                <ContextMenu x:Name="ContextMenu1" StaysOpen="true" HasDropShadow="False" Placement="RelativePoint">
                    <MenuItem Header="Delete" Command="{x:Static igDP:DataPresenterCommands.DeleteSelectedDataRecords}"  />
                </ContextMenu>
            </igDP:XamDataGrid.ContextMenu>

but when i click rightbutton ,the menuItem(Delete) is disenable and after i click one record ,the menuItem(Delete) is enable,how to enable the

menuItem without leftbutton choose a record,i want to use rightbutton only to Delete record but choose the record with leftbutton first,thanks!