Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8031741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:12:07+00:00 2026-06-05T01:12:07+00:00

The GridView and the ListView in XAML seem to be the same control. How

  • 0

The GridView and the ListView in XAML seem to be the same control.

How does a developer choose between the two?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:12:08+00:00Added an answer on June 5, 2026 at 1:12 am

    The GridView control typically scrolls horizontally. Also, you will see some native spacing between items that is greater than that in the ListView. This spacing is there because of the intent for how the controls will be used in Windows Store apps. (read on)

    • Like the ListView it inherits from ItemsControl.
    • Like the ListView groups using GroupStyle.
    • Like the ListView it supports the two new Virtualization strategies.
    • Like the ListView it supports the different Selection modes.

    Sample syntax:

    <GridView>
        <x:String>Item 1</x:String>
        <x:String>Item 2</x:String>
    </GridView>
    

    The ListView control typically scrolls vertically.

    Sample syntax:

    <ListView>
        <x:String>Item 1</x:String>
        <x:String>Item 2</x:String>
    </ListView>
    

    THIS IS THE ANSWER

    The general differentiation between the two is their occurance in views. A GridView tends to appear in FullView, FillView, and Portait. The ListView, because of its vertical orientation, tends to appear in the SnapView. Either control can appear in either view, but this is the local diversion of the two controls.

    enter image description here

    MSDN: The ListView and GridView controls are both used to display
    collections of data in your app. They have similar functionality, but
    display data differently. They are both derived from the ItemsControl
    class. When we talk about an ItemsControl, the info applies to both
    the ListView and GridView controls.

    The ListView displays data stacked vertically. It’s often used to show
    an ordered list of items, such as a list of emails or search results.
    It’s also useful in master-detail scenarios, where the list items
    contain only a small amount of info and the details of the selected
    item are shown separately.

    The GridView displays data stacked horizontally. It’s often used when
    you need to show a rich visualization of each item that takes more
    space, such as a photo gallery.*

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a WPF ListView/GridView spec'd in XAML. The first column uses a CellTemplate
I have ListView that uses a GridView to display several columns of data. Two
I use this XAML code for the ListView: <ListView> <ListView.View> <GridView> <GridViewColumn DisplayMemberBinding={Binding Path=Flag}
I have the follwoing listview in my xaml: <ListView Name=listView1> <ListView.View> <GridView> <GridViewColumn Width=Auto
I have the following code in xaml: <ListView Name=listView1 IsSynchronizedWithCurrentItem=True > <ListView.View> <GridView> <GridViewColumn
This is my XAML: <ListView ItemsSource={Binding Items}> <ListView.View> <GridView> <GridViewColumn Header=Property1 DisplayMemberBinding={Binding Property1} />
I have the following wpf control added to xaml: <ListView Margin=22,80,271,12 Name=listView1 ItemsSource={Binding} />
Need to format a string in a ListView GridView in code behind. XAML is
I am using a gridview inside a listview.My grid view has two colums ID
i am doing this xaml : <StackPanel Margin=320,0,0,0 Grid.RowSpan=2> <ListView ItemsSource={Binding employeeCollection}> <ListView.View> <GridView>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.