+ 1

Listview or Grid WPF

I need to show some data in a table. With a header, columns, rows and so on. I have the data in a observable collection. Should I use a Listview or a grid Currently I am using a stackpanel with textblock, it does work but does not look nice.

19th Jan 2022, 2:16 PM
sneeze
sneeze - avatar
2 Respostas
+ 1
Out of the box a ListView will work/look the best. With some heavy setup, a header template and column style, it can be very nice.. There is also a DataGrid which will be very similar to an excel table without any modification.
21st Jan 2022, 12:42 AM
Kail Galestorm
Kail Galestorm - avatar
+ 1
Grid is more flexible.
19th Jan 2022, 9:21 PM
Mohamad Kamar
Mohamad Kamar - avatar