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 3795346
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:04:11+00:00 2026-05-19T13:04:11+00:00

I can add items just fine BUT as soon as I even think about

  • 0

I can add items just fine BUT as soon as I even think about trying other columns…

                    ListViewItem listItem = new ListViewItem();
                    listItem.Content = feed.Title.Value;
                    lvLately.Items.Add(listItem.Content);
                    listItem.Content = feed.Link.Value;
                    lvLately.SubItems.Add(listItem.Content);

                    ListViewItem lvLately = new ListViewItem("Bob");
                    lvLately.SubItems.Add("13");
                    lvLately.SubItems.Add("Other stuff");

Error 1 ‘System.Windows.Controls.ListView’ does not contain a definition for ‘SubItems’ and no extension method ‘SubItems’ accepting a first argument of type ‘System.Windows.Controls.ListView’ could be found (are you missing a using directive or an assembly reference?) C:\Users\Tommo\documents\visual studio 2010\Projects\Morning\Morning\MainWindow.xaml.cs 185 34 Morning

  • 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-05-19T13:04:12+00:00Added an answer on May 19, 2026 at 1:04 pm

    I think you’re confusing with the Windows Forms ListView, which has sub-items (but it’s a property of ListViewItem, not ListView).

    In WPF there is no such thing as sub-items, there are only items. You can display multiple columns by using a GridView as the View for the ListView. You can do it in code, but it’s much easier in XAML. And anyway, you need to use data binding for this… I don’t think there’s an easy way to do it without bindings.

    If you want to learn WPF, I suggest you forget what you learned in WinForms… The framework is completely different, and if you try to code in WPF the way you did in WinForms, you’ll find yourself constantly fighting the API. Use XAML, use templates, use data binding. If you don’t, you will end up hating WPF…

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

Sidebar

Related Questions

I'm trying to create a player who can add and remove items from their
Now I can add items with store.newItem() . After adding it, it's placing it
I understand that if one has a listBox one can easily add items to
Can we add the items in the combobox located on the window form dynamically
I have a list of items that a user can add to by clicking
When I create and add a UIToolBar and UIBarButton items, how can I get
I have an ASP.NET application which works just fine, but which is becoming unwieldy.
I'm trying to dynamically create and remove items from a list, it works just
How can I add an item to a list if that item is essentially
I've got a web page where the user can add a new item to

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.