Gridview
A Gridview is a control for displaying and manipulating data from a variety of data sources.
Listview
A ListView is a graphical screen control or widget provided by UI libraries in a majority of modern operating systems to show items in a list form.
Choice as repeater
Example |
---|
"If paging sorting editing etc is needed then listview is better choice;as far as showing multiple tables goes you can use nested controls - for example repeater list-view nesting a gridview" from question Which data control would be apt for the scenario? |
"I think the listview is better than gridview in this situation" from question Custom GridAdapter with 2 columns doesn't works "Listview much better than the gridview dataview in that they let you write out clean html" from question What are the useful new ASP.NET features in the .NET Framework 3.5? |
Control finer display
Example |
---|
"I believe gridview allows much finer grained control of display than does listview" from question How to make a listview horizontal in the Windows Phone 8.1 RT? |
"Here s another article that describes the listview control and why it s probably a better fit than the gridview" from question ASP.Net Gridview with paging and images from folder |
Easier better
Example |
---|
"I think using a gridview is better for your case than a listview" from question Sum ListView specific column |
"You may also consider using a listview which is easier to customize than the gridview" from question How to add a rowspan to the first column in a gridview? |
Others
Example |
---|
Note that i do not want to bind a gridview directly to the view property from a resourcedictionary where the datatemplates x shared attribute is set to false as this leads to problems in the xaml designer view can t be shared by more than one listview from question How to create an instance from a DataTemplate Regarding comparison between gridview and listview my experience is that listview is more lightweight as compared to gridview from question ASP.Net Control vs HTML Control Performance The error is because the gridview is being applied to more than one listview from question 'View cannot be shared by more than one ListView' Wpf Error |
I have a rather simple listview with gridview style from question ListView items do not display |
He reason listview and gridview can scroll in the first place is because they have a scrollviewer built in;when you place a listview inside a parent layout panel a stackpanel or a grid row if the listview height is greater than the viewport a parent layout panel becomes the full height of the listview from question Content inside layout panel not scrolling |
What looks more appropriate in you case is to use rowdetailstemplate to define a child datagrid gridview to display the strings collection displaying the strings collection at the same level as the other properties could be a hard task to do and doesn t make much sense . here a sample of how to define a datagrid within another one same thing using gridview listview datagrid looks more appropriate from question Binding observable collection of custom objects containing array |
The gridview is visible by default and the listview is not;when we navigate to the page the visualstatemanager is called after the page is rendered and therefore when navigated to the gridview is visible for a short time and calls the loadmoreitemsasync method before it gets hidden from question Incremental Loading and snapped visual state |
See the detailed tutorial about how to use one here you can use listview or gridview which is more suitable for you from question How make View in Yii and postgres Report By Month |
A gridview is used as a supplement control to a listview to provide style and layout;the gridview does not have its own control related properties such as background and foreground colors font properties size and location from question Automatically create DataGridViewComboBoxCell from object's collection property |