0

Is it possible to create a widget in WinUI3/C++ that would look like a table like it is done in File Explorer? So that there would be headers, by clicking on which you can sort the data by columns?

I looked for a similar widget in the WinUI 3 Gallery application, but did not find anything similar. If there is no standard similar widget, is it possible to implement similar functionality yourself? If so, how exactly?

6
  • The TreeView, ListView and DataGridView classes would probably be a reasonable choice. I am not sure whaether these are directly available in WinUI 3, but a search of MSDN should find them. Commented Apr 11 at 8:58
  • There's the DataGrid in community toolkit learn.microsoft.com/en-us/windows/communitytoolkit/controls/… Commented Apr 11 at 16:00
  • @SimonMourier As far as I know, community toolkit is only available for C#, not for C++ Commented Apr 12 at 7:55
  • Indeed, I missed the C++ tag in your question. In theory it's possible to consume any WinRT component from other languages. Not sure it works in this case though. Commented Apr 12 at 8:12
  • I can recommend this: github.com/w-ahmad/WinUI.TableView Commented Apr 15 at 11:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.