﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » Updates and Information » StrataFrame Users Contributed Samples  » Synch ListView Control</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 06 May 2026 22:31:57 GMT</lastBuildDate><ttl>20</ttl><item><title>Synch ListView Control</title><link>http://forum.strataframe.net/FindPost14966.aspx</link><description>This is a sample of how to use a list view to navigate through the records of a ListView and keep the ListView in synch with the BO.  A SF ListView was subclassed to add the synching functionality.  See the project for info on how it was done. The project uses the StrataFrameSample db.&lt;br&gt;
&lt;br&gt;
Features:&lt;br&gt;
- Fairly easy to setup.&lt;br&gt;
- Handles adding, updating and deleting within the BO&lt;br&gt;
- Selecting an item in the list navigates to that item in the BO.&lt;br&gt;
- Navigation of the BO automatically updates selected item in the list.&lt;br&gt;
- Filling the data table automatically updates the list and synchs it&lt;br&gt;
&lt;br&gt;
Usage:&lt;br&gt;
- Drop a BO on the form&lt;br&gt;
- Drop this control on the form&lt;br&gt;
- Setup the columns for the listview (normal SF procedure)&lt;br&gt;
- Setup the Population list settings.  The method must be CopyDataFrom using the business layer overload.&lt;br&gt;
- Set the BO of the synch list control&lt;br&gt;
&lt;br&gt;
These are the basics. The last step depends on how you will load the BO. In the sample, the BO is simply loaded when the form is loaded. In that case, have the list load when the form is loaded also and be sure the initialization priority of the list to be [b]larger[/b] than the priority of the form (the BO needs to be loaded first). &lt;br&gt;
&lt;br&gt;
If you load the BO manually, then the list should be loaded manually also. Whenever you load the BO, simply call the UpdateAndSynch() method of the list after loading.&lt;br&gt;
&lt;br&gt;
I typically will call the SelectFirstListItem() method after the load in order to make sure that the first item in the list is selected.  This could probably be built in, but isn't at this point.&lt;br&gt;
&lt;br&gt;
As always, comments/suggestions/improvements are welcome and appreciated!&lt;br&gt;
&lt;br&gt;
Greg</description><pubDate>Wed, 16 Apr 2008 17:08:46 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15707.aspx</link><description>Edhy,&lt;/P&gt;&lt;P&gt;I have tested, on many different 64-bit machines, and the install works fines.&amp;nbsp; You are probably dealing with permission issues or something along those lines.&amp;nbsp; I cannot reproduce every developers environment that uses StrataFrame, but we &lt;STRONG&gt;&lt;U&gt;&lt;EM&gt;DO&lt;/EM&gt;&lt;/U&gt;&lt;/STRONG&gt; install on the following platforms prior to releasing an update (including a beta): Windows XP SP2, Windows Vista 32 Business, Windows Vista 64 Business, Windows Server 2003 R2, and now Windows Server 2008.&lt;/P&gt;&lt;P&gt;So I already know that the install works in a clean environment.&amp;nbsp; There were some issues prior to the 1.6.5 release when we made some changes for a 64-bit environment for VS2008.&amp;nbsp; But none of these issues exist.</description><pubDate>Wed, 16 Apr 2008 17:08:46 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15704.aspx</link><description>Vista 64bits Installation steps:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Accepted Installation suggested forlder: C:\Program Files (x86)\MicroFour\StrataFrame&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG style="WIDTH: 539px; HEIGHT: 376px" height=319 src="http://forum.strataframe.net/Uploads/Images/7b6aa22c-03ae-456b-9c11-2f82.png" width=539&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Got AddIn error, looking at the wrong folder: C:\Program Files\Common Files\MicroFour\StrataFrame\StrataFrame2008.AddIn&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/2c017f03-67fa-4b9f-bc0b-2b59.png"&gt;&lt;/P&gt;&lt;P&gt;I remove SF again, and started the installation and modified the install folder to use: C:\Program Files\MicroFour\StrataFrame.&lt;/P&gt;&lt;P&gt;This time installation completed without errors, but when opening VS got this error message: "The Add-in StrataFrame Add-in Manager failed to load or caused an exception.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/98d4a497-ecee-46fd-a0ff-9cb8.png"&gt;&lt;/P&gt;&lt;P&gt;Of course all the Add in where installed at C:\Program Files (x86)\Common Files\MicroFour even though I did not select that folder, guess this is a feature of InstallAware since the installation is being done on a 64bit OS.&lt;/P&gt;&lt;P&gt;Notice that the folder C:\Program Files\Common Files\MicroFour\StrataFrame was created but with no files. Then I did the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Copied all the information from C:\Program Files (x86)\Common Files\MicroFour\StrataFrame to&amp;nbsp; C:\Program Files\Common Files\MicroFour\StrataFrame&lt;/LI&gt;&lt;LI&gt;Remove installation&lt;/LI&gt;&lt;LI&gt;Re-install in&amp;nbsp; C:\Program Files (x86)\MicroFour\StrataFrame and then everything worked.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I know you have tested this under Vista 64, but I am just reporting what I am experiencing with the installation.</description><pubDate>Wed, 16 Apr 2008 15:07:57 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15701.aspx</link><description>These are the steps I used in the update:&lt;OL&gt;&lt;LI&gt;Close all instance of VS.&lt;/LI&gt;&lt;LI&gt;Ran StrataFrameSetup.exe&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;This removed previous version which was installed in drive C:&lt;/LI&gt;&lt;LI&gt;I skipped the Database Installation since that was previously updated.&lt;/LI&gt;&lt;/UL&gt;&lt;LI&gt;Installation completed without any issues.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The setup put the updated libraries in this location:&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;STRONG&gt;C:\Program Files &lt;FONT color=#bb3333&gt;(x86)&lt;/FONT&gt;\Common Files\MicroFour\StrataFrame&lt;/STRONG&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;For some reason the About form is looking at:&lt;/P&gt;&lt;P&gt;[codesnippet]C:\Program Files\Common Files\MicroFour\StrataFrame[/codesnippet]&lt;/P&gt;&lt;P&gt;which had the old version of the libraries.&lt;/P&gt;&lt;P&gt;I will uninstall SF completely and make sure there is nothing else in these locations:&lt;/P&gt;&lt;P&gt;[codesnippet]C:\Program Files (x86)\Common Files\MicroFour\StrataFrame&lt;/P&gt;&lt;P&gt;C:\Program Files\Common Files\MicroFour\StrataFrame&lt;/P&gt;&lt;P&gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;Then I will install it again and see what happen.&amp;nbsp; Will do that now....:hehe:</description><pubDate>Wed, 16 Apr 2008 13:50:03 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15698.aspx</link><description>No.&amp;nbsp; The files in your Common Files\MicroFour\StrataFrame folder did not get updated.&amp;nbsp; Here is a screen shot from one of our test machines, so I know that the install is working correctly (it at least contains the proper versions).&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/89acb03e-c6f6-42ec-b291-a20c.png"&gt;&lt;/P&gt;&lt;P&gt;FYI...this is&amp;nbsp;a screen shot from a 64-bit test machine since I am farily confident that you are on a 64-bit machine.&amp;nbsp; It is important that you were not in VS while installing, let the install finish, and then go back in as there were changes to the Extensibility assemblies to account for 64-bit machines.&amp;nbsp; Otherwise if could be reporting wrong.</description><pubDate>Wed, 16 Apr 2008 13:32:24 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15695.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;I installed the beta 1.6.5.1 and noticed that in the About window all dll are showing version 1.6.5.0 except for the .exe files, is this correct?&lt;/P&gt;&lt;P&gt;Please take a look at this image.&lt;/P&gt;&lt;P&gt;&lt;IMG style="WIDTH: 564px; HEIGHT: 382px" height=333 src="http://forum.strataframe.net/Uploads/Images/c185432e-8896-4ed6-849d-438c.png" width=454&gt;</description><pubDate>Wed, 16 Apr 2008 12:47:22 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15690.aspx</link><description>LOL, I tried to use the new properties on the Listview just yesterday and they didn't work.  Now I know why!  :D  New build looks very nice.</description><pubDate>Wed, 16 Apr 2008 11:48:19 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15688.aspx</link><description>You can get the build that has this functionality here: &lt;A href="http://forum.strataframe.net/FindPost15687.aspx"&gt;http://forum.strataframe.net/FindPost15687.aspx&lt;/A&gt;</description><pubDate>Wed, 16 Apr 2008 11:19:02 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15684.aspx</link><description>Well, I could give it to you today but it doesn't have any docs, samples, etc.&amp;nbsp; So it would then require me to stop all other forward motion, such as some of the enhancement requests that have come up lately.&amp;nbsp; So it is all about priorities. ;)&lt;/P&gt;&lt;P&gt;I will be posting a beta build in the Posted Releases section later today that will have some new features that people have been waiting for, including this list, but I will not be posting any docs or samples along with the build.</description><pubDate>Wed, 16 Apr 2008 09:54:09 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15683.aspx</link><description>Soon? :)</description><pubDate>Wed, 16 Apr 2008 09:37:47 GMT</pubDate><dc:creator>Mike Tomlin</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15172.aspx</link><description>[quote]So does that mean we do not have the code the listview anymore?[/quote]&lt;/P&gt;&lt;P&gt;Pretty much...I have been using it for a week now and it has been working well.&amp;nbsp; I will post a sample and assemby pretty soon so you all can have it as well.&lt;/P&gt;&lt;P&gt;[quote]Will already coded listviews have the code removed?[/quote]&lt;/P&gt;&lt;P&gt;No, they will work as they did before.&amp;nbsp; If you want to use the new logic you can, but all existing code will still work just fine.&lt;/P&gt;&lt;P&gt;[quote]Is it still coming soon? [/quote]&lt;/P&gt;&lt;P&gt;Yup...very ;)</description><pubDate>Tue, 25 Mar 2008 20:35:31 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15166.aspx</link><description>Sounds Great!&lt;/P&gt;&lt;P&gt;So does that mean we do not have the code the listview anymore? Will already coded listviews have the code removed? Is it still coming soon?</description><pubDate>Tue, 25 Mar 2008 17:33:01 GMT</pubDate><dc:creator>Michael Reese</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15046.aspx</link><description>Thanks Edhy! I'll check it out :D</description><pubDate>Wed, 19 Mar 2008 19:43:43 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost15044.aspx</link><description>[quote][b]Greg McGuffey (03/18/2008)[/b][hr]Cool Trent! I look forward to checking it out![/quote]&lt;/P&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;I made a change to the SynchListView class to handle the SaveUndo, so when the Undo is executed the listview will be re-synch.&lt;/P&gt;&lt;P&gt;All the code I added is commented with the following string:&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;FONT color=#008000 size=2&gt;&lt;/P&gt;&lt;P&gt;' Edhy Rijo 03/19/2007:&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;[/codesnippet]</description><pubDate>Wed, 19 Mar 2008 18:30:48 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost14999.aspx</link><description>Cool Trent!  I look forward to checking it out!</description><pubDate>Tue, 18 Mar 2008 16:43:58 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost14995.aspx</link><description>Great:exclamationmark:&lt;P&gt;Thanks a lot.:P</description><pubDate>Tue, 18 Mar 2008 16:13:50 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost14992.aspx</link><description>&lt;STRONG&gt;ListView now supports UI data interaction including related business objects, child form dialog, and related command or toolstrip buttons.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The ListView has been dramatically expanded to have native logic for tasks that are common recoded.&amp;nbsp; There are now many new properties (detailed below) and events that allow a more dynamic child display interaction with much less code.&amp;nbsp; By simply setting the UI interaction properties of the ListView, the ListView will dynamically manage the toolstrip buttons (or any other type of control) for the Add, Edit, and Delete as well as any security keys that may also be associated with those objects.&amp;nbsp; Additionally, a ChildFormDialog can be attached to the ListView which will then by dynamically shown to the end-user on an Add or Edit dynamically with no additional code.&amp;nbsp; Finally, the ListView will now allow the instance of the business object of which it represents to be attached and the current index (or row position) of the business object to be dynamically updated.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New&amp;nbsp;Properties:&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AddObject&lt;BR&gt;AddObjectSecurityKey&lt;BR&gt;EditObject&lt;BR&gt;EditObjectSecurityKey&lt;BR&gt;DeleteObject&lt;BR&gt;DeleteObjectSecurityKey&lt;BR&gt;DeleteMessageKey&lt;BR&gt;AutoNavigateToSelectedRecord&lt;BR&gt;HandleAddAction&lt;BR&gt;HandleDeleteAction&lt;BR&gt;HandleEditAction&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New Events:&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ChildFormResults&lt;/P&gt;&lt;P&gt;I will post the updated assemblies and a sample of how to use this new logic later this week.</description><pubDate>Tue, 18 Mar 2008 16:02:36 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost14988.aspx</link><description>Glad it helped and worked!  :D&lt;br&gt;
&lt;br&gt;
If you think of or code any enhancements, please share :D</description><pubDate>Tue, 18 Mar 2008 12:20:06 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Synch ListView Control</title><link>http://forum.strataframe.net/FindPost14978.aspx</link><description>[quote][b]Greg McGuffey (03/17/2008)[/b][hr]As always, comments/suggestions/improvements are welcome and appreciated!&lt;BR&gt;&lt;BR&gt;Greg[/quote]&lt;P&gt;Greg, this is great!, just now I had the time to test this and was able to make it run without error the very first time, very simple and easier to use and it works as advertised.&lt;/P&gt;&lt;P&gt;Thanks a lot for sharing this with us.&lt;/P&gt;&lt;P&gt;P.S.&lt;P&gt;Trent, this will be a great enhancement to the framework, please try it.</description><pubDate>Mon, 17 Mar 2008 19:13:52 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>