﻿<?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 Navigation</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 05:48:21 GMT</lastBuildDate><ttl>20</ttl><item><title>Listview Navigation</title><link>http://forum.strataframe.net/FindPost2634.aspx</link><description>&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;When I use the following code to navigate from the toolbar, I get an error (recordID) which is the primary key of my table is zero. Everything works fine if the table has records.&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;Private&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; BO_Navigated(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; MicroFour.StrataFrame.Business.NavigatedEventArgs) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Handles&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt; BuildTypeBO1.Navigated&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SetListViewIndex(BuildTypeBO1.RecordID)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 05 Sep 2006 15:09:32 GMT</pubDate><dc:creator>Michael Reese</dc:creator></item><item><title>RE: Listview Navigation</title><link>http://forum.strataframe.net/FindPost2645.aspx</link><description>Glad to hear it :)</description><pubDate>Tue, 05 Sep 2006 15:09:32 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Listview Navigation</title><link>http://forum.strataframe.net/FindPost2641.aspx</link><description>Thanks, that worked.</description><pubDate>Tue, 05 Sep 2006 14:47:21 GMT</pubDate><dc:creator>Michael Reese</dc:creator></item><item><title>RE: Listview Navigation</title><link>http://forum.strataframe.net/FindPost2640.aspx</link><description>If there are no records, then accessing any strong-typed property will throw an error.&amp;nbsp; The easiest way to avoid this is to test on the count of the business object like this:&lt;/P&gt;&lt;P&gt;If BuildTypeBO1.Count &amp;gt; 0 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SetListViewIndex(BuildTypeBO1.RecordID)&lt;BR&gt;End If</description><pubDate>Tue, 05 Sep 2006 13:41:05 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>