﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » ListView Shows No Data</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 23 May 2026 16:20:46 GMT</lastBuildDate><ttl>20</ttl><item><title>ListView Shows No Data</title><link>http://forum.strataframe.net/FindPost22279.aspx</link><description>I am just trying to show data from a child BO in a list view. I must not have the setting correct because I get no data to show. The BeginningListView photo shows the simple form I am using. The button just has a break point behind it so I could use the DataView Visualizer to see if my Parent(Customers) Child(Orders) relationship is working. When I look at the me.OrdersBO1.CurrentView it does show the correct records for the child so I think that is set up correctly.&lt;P&gt;I have also went into the ListView properties and set the Columns Collection to one column called colPrimary as the image shows. I set the PopulationDataSource to OrdersBo and the Method to FillByParentPrimaryKey(Int32), display fields to {0} or_pk, columns to formattedString and {0} and finally tag field to or_pk.&lt;/P&gt;&lt;P&gt;When I run the form I get what is shown in the SimpleListView image. What am I missing? It maybe that I have a parent child defined and then I am using the Fillbyparentprimarykey method but I am not sure.&lt;/P&gt;&lt;P&gt;TIA.</description><pubDate>Wed, 11 Mar 2009 10:58:52 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: ListView Shows No Data</title><link>http://forum.strataframe.net/FindPost22312.aspx</link><description>Glad that fixed it.  I've done this more than a couple of times myself.  :pinch:</description><pubDate>Wed, 11 Mar 2009 10:58:52 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: ListView Shows No Data</title><link>http://forum.strataframe.net/FindPost22300.aspx</link><description>That was it. I was not using the PK of the parent BO. Yea Gads how simple. Thank you so very much. I guess I thought since I was telling it to fillbyparentprimarykey(int32) that was all I had to do. Thanks again.</description><pubDate>Tue, 10 Mar 2009 20:32:36 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: ListView Shows No Data</title><link>http://forum.strataframe.net/FindPost22295.aspx</link><description>Just to check the basics first, did you handle the ListPopulating event of the ListView and set the parent primary key?</description><pubDate>Tue, 10 Mar 2009 16:56:55 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: ListView Shows No Data</title><link>http://forum.strataframe.net/FindPost22291.aspx</link><description>I put the statement listview1.requery() in the OrdersBO1.navigated and I moved to record shown on the OriginalForm image. I also sent an image of what the ordersbo1.currentview looks like at that time. The listview is still not populated? TIA.</description><pubDate>Tue, 10 Mar 2009 14:07:20 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: ListView Shows No Data</title><link>http://forum.strataframe.net/FindPost22282.aspx</link><description>On the Navigated event of the Customers BO instance, call the ListView.Requery() method to reload the list.&amp;nbsp; This is most likely the piece that you are missing.</description><pubDate>Tue, 10 Mar 2009 09:05:34 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>