Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

How can I use datagrid control in WinUI c++? #4781

Closed

Description

@Endt4sk

WinUI C++ project can not install CommunityToolkit through NuGet, so How can I use that control in WinUI C++ project?

Activity

  1. michael-hawker commented on Oct 4, 2022

    @michael-hawker
    Member

    @Endt4sk the Toolkit controls aren't built for consumption by C++. Are you using UWP or the Windows App SDK at the moment? (WinUI is a bit ambiguous).

    If you're using UWP, we have an example we put together here on how to create a C#/WinRT component to host a Toolkit component for consumption by a C++/WinRT app: https://github.com/CommunityToolkit/Sample-Windows-CppWinRT

    However, we haven't attempted to migrate or try this scenario out yet on the Windows App SDK. A similar approach would theoretically be possible, but in either case, there's aren't really well supported scenarios.

    It'd be good to upvote and comment on the DataGrid issue on the WinUI repo to let them know you need this scenario for C++ as well here: microsoft/microsoft-ui-xaml#1500

  2. added
    question ❔Issues or PR require more information
    DataGrid 🔠Issues on DataGrid control
    WinUI 💠Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.
    and removed on Oct 4, 2022
  3. locked and limited conversation to collaborators on Oct 4, 2022
  4. converted this issue into a discussion #4782 on Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DataGrid 🔠Issues on DataGrid controlWinUI 💠Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.controls 🎛️question ❔Issues or PR require more information

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions