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

  • SEARCH
  • Home
  • 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 8027917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:57:50+00:00 2026-06-04T23:57:50+00:00

Firstly: <ListView Height=259 HorizontalAlignment=Left Margin=7,6,0,0 Name=dataListView VerticalAlignment=Top Width=899> <ListView.View> <GridView> <GridViewColumn Width=240 Header=Test />

  • 0

Firstly:

        <ListView Height="259" HorizontalAlignment="Left" Margin="7,6,0,0" Name="dataListView" VerticalAlignment="Top" Width="899">
            <ListView.View>
                <GridView>
                    <GridViewColumn Width="240" Header="Test" />
                    <GridViewColumn Width="50" Header="Result" />
                    <GridViewColumn Header="Column 3" />
                </GridView>
            </ListView.View>
        </ListView>

is the definition in my XAML file.

Then when a test starts, I run:

dataListView.ItemsSource = tr.TestResultCollection;

In TestRunner.cs, I have created the Observable Collection of ArrayLists as such:

ObservableCollection<ArrayList> _testResultCollection = new ObservableCollection<ArrayList>();

and publicly refer to them as such:

        public ObservableCollection<ArrayList> TestResultCollection
        { get { return _testResultCollection; } }

Finally when I add to the collection, I use :

_testResultCollection.Add(SummaryVerificationTestCase1(dbs, dbd));

which adds an ArrayList to the collection. (Yes, a collection of ArrayLists, I know…)

However, what gets displayed in each Column is (Collection), (Collection, (Collection).

I see why. However, I’m not entirely certain what the neatest way around is. Normally in each GridViewColumn you give a binding like:

DisplayMemberBinding=”{Binding TestResult}”

But the ArrayList doesn’t have named components, just indices (0-2).

Is there a way to bind each column to the individual indices? Or have I missed something simple already?

  • 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-04T23:57:51+00:00Added an answer on June 4, 2026 at 11:57 pm

    Specify an index in the binding path:

           <GridViewColumn Width="240" Header="Test" DisplayMemberBinding="{Binding Path=[0]}"/>
           <GridViewColumn Width="50" Header="Result" DisplayMemberBinding="{Binding Path=[1]}"/>
           <GridViewColumn Header="Column 3" DisplayMemberBinding="{Binding Path=[2]}"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Firstly I am using this for the ListView control itself: ItemsSource={Binding AllEffects} So would
Firstly, here's my script: #!/usr/bin/python import sys, os sys.path.append('/home/username/python') sys.path.append(/home/username/python/flup) sys.path.append(/home/username/python/django) # more path
Firstly: I am totally a newbie for this kind of work. I have a
Firstly, I was wondering if there was some kind of built in function that
Firstly I know that there are many question and solutions to correct thread marshalling
Firstly, I do not have any malicious intent out of this question. I would
Firstly, let me start by saying that I haven't ever directly used SQL views.
Firstly, I want to apologize for my English, not my strongest side. To the
Firstly, Modifying may be the wrong term, I see a few people have posted
Firstly, sorry for my English (I'm from China). By reading this article( how 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.