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

The Archive Base Latest Questions

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

I have a list in gridview. I have bound the gridview columns to get

  • 0

I have a list in gridview. I have bound the gridview columns to get set members in a class JFifoData, instances of which I have collected in an Observable Collection. I have then bound the ListView ItemsSource to this collection. For some reason, however, the data is not being displayed when I run the program. Here is the relevant code, am I doing something wrong?

XAML Code

<ListView Name="JfifoList" ItemsSource="{Binding JFifoCollection}">>
    <ListView.View>
        <GridView>
            <GridViewColumn DisplayMemberBinding="{Binding Time}" Header="time" Width="225"/>
            <GridViewColumn DisplayMemberBinding="{Binding FEStatus}" Header="fe status" Width="225"/>
            <GridViewColumn DisplayMemberBinding="{Binding BEStatus}" Header="be status" Width="225"/>
            <GridViewColumn DisplayMemberBinding="{Binding Trigger}" Header="trigger" Width="350"/>
        </GridView>
    </ListView.View>
</ListView>

JFifoData class

public class JFifoData
{
    public DateTime Time { get; set; }
    public string FEStatus  { get; set; }
    public string BEStatus  { get; set; }
    public string Trigger  { get; set; }

    public uint TID  { get; set; }
    public uint Frames  { get; set; }
    public uint HWCRC  { get; set; }
    public uint FPS  { get; set; }
    public string Faults { get; set; }
    public string Info { get; set; }
    public string Config { get; set; }
}

get member of my window class

public ObservableCollection<JFifo.JFifoData> JFifoCollection
{
    get
    {
        return Fifo.CollectedData;
    }
}

Initialization of the Observable Collection

Data = new ObservableCollection<JFifoData>();
Data.Add(new JFifoData
{
    Time = new DateTime(),
    FEStatus = "FE Good",
    BEStatus = "BE Good",
    Trigger = "Trigged"
});
Data.Add(new JFifoData
{
    Time = new DateTime(),
    FEStatus = "FE Bad",
    BEStatus = "BE Bad",
    Trigger = "Not Trigged"
});
  • 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-24T13:04:13+00:00Added an answer on May 24, 2026 at 1:04 pm

    Your code looks fine, however, if this is all the relevant parts of your code, you have not set the DataContext for your ListView. Do the following:

    JfifoList.DataContext = theClassWhichExposesJFifoCollection
    

    It would also appear that your XAML is malformed. Look at the first line:

    <ListView Name="JfifoList" ItemsSource="{Binding JFifoCollection}">>
    

    It has two angle-brackets at the end!

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

Sidebar

Related Questions

I have a GridView control bound to an ObjectDataSource which returns a list of
I have a GridView which is bound to a list of objects. One of
My problem is: I have a GridView, which is bound to list of declared
I've got a GridView control which is bound to a List of custom objects.
I have a Sharepoint list which have columns like : CopmanyName, Add1, Add2 Country,
I have GridView bound to some List. In layout I created following template field:
I have a Gridview in which i have two templatefields of dropdownlist. I bound
I have a GridView on ASP.NET web form which I have bound to a
I have a gridview bound to a list of objects like so List<myObject> .
I have a list view which has a grid view with four columns. The

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.