Skip to content

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

Discussion options

You must be logged in to vote

@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 sce…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by michael-hawker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question ❔ Issues or PR require more information controls 🎛️ DataGrid 🔠 Issues on DataGrid control WinUI 💠 Related to WinUI 3 Version or when paired with External can mean requires fix in WinUI 2/3.
2 participants
Converted from issue

This discussion was converted from issue #4781 on October 04, 2022 22:26.