Home Forums WPF controls Xceed DataGrid for WPF Right Click to display a ContextMenu on multiple selected rows

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #41556 |

    I can select multiple rows on a grid, but when I right-click the display a context menu, the multiple highlighted rows bacome one row highlighted.

     

    How to solve this problem? 

    Imported from legacy forums. Posted by Ming (had 70 views)

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    I was not able to reproduce the issue using a ContextMenu assigned to the DataGridControl. The grid keeps its selected items, which only became in inactive mode. I used the following code snippet for testing:

                <xcdg:DataGridControl.ContextMenu>
                    <ContextMenu>
                        <ContextMenu.ItemsSource>
                            <CompositeCollection>
                                <MenuItem Header=”MenuItem1″ />
                                <MenuItem Header=”MenuItem2″ />
                                <CollectionContainer Collection=”{StaticResource extensions}” />
                                <CollectionContainer Collection=”{StaticResource extensions1}” />
                            </CompositeCollection>
                        </ContextMenu.ItemsSource>
                    </ContextMenu>
                </xcdg:DataGridControl.ContextMenu>

    If that’s not what you meant, could you send me a simple stand alone sample project which reproduces the issue so that I could have a closer look. You may send it to support@xceed.com

    Imported from legacy forums. Posted by Fawzi [Xceed] (had 34 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.