I have an excel sheet that I want to display in a DataGrid. My issue is that I don't know what kind of data structure to put in the ObservableCollection so that the rows will show properly. I know this sort of thing works with a struct holding the row data, but a struct with 20 some fields seems messy to me.
How can I display the data from an excel sheet in a Windows Community Toolkit DataGrid?
127 views Asked by samgido At
1
There are 1 answers
Related Questions in WINUI-3
- Binding data with unknown columns to a DataGrid in WinUI 3
- How can I force a .NET MAUI ContentView to fill the entire remaining space of its FlexLayout parent?
- x:Bind a embeded page to the parent window viewmodel in WinUI 3
- What the equivalent to LocalPrintServer and PrintQueue that can be used in WinUI
- ScrollViewer does not adjust accordingly to image scaling
- Why my MAUI control isn't visible but still interractive
- In C# WinUI, a crash about "System. ExecutionInexception" is caused for unknown reasons
- WinUI 3 TemplateStudio Read from local settings using the LocalSettingsService
- How to obtain the real-time properties of a custom title bar in C++/WinRT WinUI3
- How do you know which items are realized (non-virtualized) in an ItemsRepeater?
- Can I use a WindowsFormsHost in a WinUI3 application?
- OAuth implementation with WINUI unpackaged app not working
- WindowsAppSDK resource file modification requires rebuild
- WINUI3 Packaged App: Copy folders/files during installation locally
- Runtimes Directories Are Being Generated Only in Debug Mode With MSBuild
Related Questions in WINUI
- How can I tell if a control is actually Visible in UWP?
- WinUI3 CommunityToolkit MVVM Messenger calling on disposed objects?
- What the equivalent to LocalPrintServer and PrintQueue that can be used in WinUI
- ScrollViewer does not adjust accordingly to image scaling
- How do I get the typename of an arbitrary XAML FrameworkElement?
- WINUI3 Packaged App: Copy folders/files during installation locally
- Winui3, How to include folders to packaged installer?
- How can we get the Microsoft.UI.Xaml.Controls.Primitives.ScrollBar in a .NET MAUI WinUI platform
- How do I access a subproperty from my .resw file in code?
- How to access XamlRoot from a non-UI thread?
- How to log to EventViewer with WINUI?
- WinUI 2 - Tabview hides Mics
- Frame.Navigate crashes when passed a Page-derived class from dynamically-loaded assembly?
- Multi-Targeting with Class Libraries containing Resource Dictionaries
- How to x:Bind to xaml root object's member from DataTemplate in WinUI?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
If you don't want a class that represents a row, you can put them in a
List.You can also use a
Dictionaryfor this: