﻿<?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 activate Add/Edit/delete/ buttons when select an item of the list</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 06:25:17 GMT</lastBuildDate><ttl>20</ttl><item><title>ListView activate Add/Edit/delete/ buttons when select an item of the list</title><link>http://forum.strataframe.net/FindPost21709.aspx</link><description>Hi&lt;P&gt;I'm having a problem similar to one reported before by Edhy:&lt;/P&gt;&lt;P&gt;Hi Trent, &lt;/P&gt;&lt;P&gt;Following my working with the &lt;FONT class=SearchHighlight&gt;ListView&lt;/FONT&gt;, I noticed that when using the &lt;FONT class=SearchHighlight&gt;ListView&lt;/FONT&gt; in a One2Many form and there is not record in the parent BO the Add button of the the &lt;FONT class=SearchHighlight&gt;ListView&lt;/FONT&gt; is still Enabled which will caused an error when clicking this button and the ChildForm will try to update the FK key with no valid record in the parent.&lt;/P&gt;&lt;P&gt;I have been looking at the source and the list events to see where I could put code to disable the cmdAdd button in the list if there is no parent record.&amp;nbsp; Can you please give me hand here?&lt;FONT size=1&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT size=2&gt;I read all the answers and found the solution for the Add button to remain disabled, but I found a new problem; if I have some elements on the list and clic on one of them, the Add/Edit/Delete buttons get active, the code for handle the buttons state is the same so these buttons should not be enabled if the EditState of the form is not enabled.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; SetPreciosProveedorButtonState()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;' Sets the enabled state of the buttons&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;'-- Establish Locals&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; llSelected &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Boolean&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.lvProveedores.SelectedItems.Count &amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;'-- See if the buttons can be enabled&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.tsBtnNuevoPrecioProveedor.Enabled = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.ProductosBO1.EditingState &amp;lt;&amp;gt; BusinessEditingState.Idle&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.tsBtnEditarPrecioProveedor.Enabled = llSelected &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;AndAlso&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; (&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.ProductosBO1.EditingState &amp;lt;&amp;gt; BusinessEditingState.Idle)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.tsBtnBorrarPrecioProveedor.Enabled = llSelected &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;AndAlso&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; (&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.ProductosBO1.EditingState &amp;lt;&amp;gt; BusinessEditingState.Idle)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;/P&gt;&lt;/FONT&gt;[/codesnippet]&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT size=2&gt;Looking a solution I make the same approach of the old CRM Sample Application, in the Customers form, you handle the buttons by code and not by the properties of the ListView, using this the buttons remain disabled until the form editing state is enabled. I know these sample was made before the Listview has the properties for handle directly the Add/Edit/Delete buttons.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT size=2&gt;I believe can be a small bug in the ListView, but of course can be an error in my form.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT size=2&gt;Do you have any ideas?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT size=2&gt;Regards&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Thu, 29 Jan 2009 23:25:40 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: ListView activate Add/Edit/delete/ buttons when select an item of the list</title><link>http://forum.strataframe.net/FindPost21737.aspx</link><description>Edhy&lt;/P&gt;&lt;P&gt;Thanks for make me clear those points.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Thu, 29 Jan 2009 23:25:40 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: ListView activate Add/Edit/delete/ buttons when select an item of the list</title><link>http://forum.strataframe.net/FindPost21736.aspx</link><description>[quote][b]Juan Carlos Pazos (01/29/2009)[/b][hr]&lt;P&gt;1) The Add button it's enabled all time, these button should be enabled only when the user goes to Edit mode of the record[/[/quote]&lt;/P&gt;&lt;P&gt;No really, I don't think that is how the functionality of the listview has been designed.&amp;nbsp; As long as there is a parent record, the ListView Add button will be enable so you can add child records regardless of the Edit mode, same functinality as with the parent record and the maintenance toolbar, you can Add records without having to click the Edit button.&amp;nbsp; Take a look at the ListView.vb UpdateObjectStates() method in the MicroFour.StrataFrame.UI.WinForms Controls assembly.&lt;/P&gt;&lt;P&gt;[quote]2) ...but main problem stands, selecting an item of the list activates the edit/delete buttons, even regardless the user is in Editing mode or not.[/quote]&lt;/P&gt;&lt;P&gt;Again this is&amp;nbsp;the default behavior, look at the source code.&amp;nbsp; I have not used the Edit mode functionality in my applications yet, but I think that may be an enhancement to take into consideration the Edit mode functionality.</description><pubDate>Thu, 29 Jan 2009 22:58:03 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: ListView activate Add/Edit/delete/ buttons when select an item of the list</title><link>http://forum.strataframe.net/FindPost21735.aspx</link><description>Hi Edhy&lt;/P&gt;&lt;P&gt;It's not working, following the steps you give me.&lt;/P&gt;&lt;P&gt;1) The Add button it's enabled all time, these button should be enabled only when the user goes to Edit mode of the record&lt;/P&gt;&lt;P&gt;2) Adding the the AllBusinessObjects in the Undo&amp;nbsp;nicely ;) enable the Undo if some change it's done, thats good, but main problem stands, selecting an item of the list activates the edit/delete buttons, even regardless the user is in Editing mode or not.&lt;/P&gt;&lt;P&gt;The original samples is exactly what I'm trying to do, the buttons are not enabled until user goes to Edit mode click in the Edit button of the form, maybe the problem is that I assume that the properties of the ListView should handle the edit state of the buttons so we not have to add code anymore; using the code of the original sample works fine.&lt;/P&gt;&lt;P&gt;The last about the ChildFormResults, I forgot to add it, the only idea was show to&amp;nbsp;Trent the problem with the edit state in the buttons, thanks any way I will have to look why you use this:&lt;/P&gt;&lt;P&gt;[code]&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;P&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;.CustomersBO1.RestoreCurrentDataTableSnapshot(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;""&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;[/code]&lt;/P&gt;&lt;P&gt;And I use this:&lt;/P&gt;&lt;P&gt;[code]&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;/P&gt;&lt;P&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;.CustomersBO1.RestoreCurrentDataTableSnapshot(False&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;[/code]&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Thu, 29 Jan 2009 21:22:38 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: ListView activate Add/Edit/delete/ buttons when select an item of the list</title><link>http://forum.strataframe.net/FindPost21734.aspx</link><description>Hi Juan Carlos,&lt;P&gt;I took a quick view of your CustomerMaintenance2.vb form and here are the changes you need to made to make it work:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Remove all code for the method SetCreditCardButtonState, you don't need it.&lt;/LI&gt;&lt;LI&gt;Since you are working with 2 related tables, the Undo needs to be synch with all BO's editing state, so set the form.IncludeInFormUndoType = AllBusinessObjects, so when you change a credit card record it will enable the form's toolbar Undo button.&lt;/LI&gt;&lt;LI&gt;Replace the CustomersBO1_Navigated event with the code below.&lt;/LI&gt;&lt;LI&gt;Add the new lstCards_ChildFormResults event as the code below.&lt;/LI&gt;&lt;LI&gt;Re-read carefully the documentation about the ListView and also the changed information in the posted release forum, they will help you out a lot.&amp;nbsp; The listview is one of the SF control that has been greatly enhanced and will continue to be.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;[codesnippet][code]&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; CustomersBO1_Navigated(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.Business.NavigatedEventArgs) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Handles&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; CustomersBO1.Navigated&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Make sure there are records in the customers BO, otherwise&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' an error will occur.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; CustomersBO1.Count &amp;gt; 0 &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Load the customer credit cards&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.CustomerCreditCardsBO1.FillByParentPrimaryKey(CustomersBO1.cust_pk)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '-- Requery the credit card list&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.lstCards.Requery()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; lstCards_ChildFormResults(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; sender &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; System.Object, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.UI.Windows.Forms.ListViewChildFormResultsEventArgs) &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Handles&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; lstCards.ChildFormResults&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e.Results = Windows.Forms.DialogResult.Cancel &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.CustomerCreditCardsBO1.RestoreCurrentDataTableSnapshot(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;""&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;True&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;Else&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;e.Requery = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;True&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;[/code][/codesnippet]</description><pubDate>Thu, 29 Jan 2009 19:22:21 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: ListView activate Add/Edit/delete/ buttons when select an item of the list</title><link>http://forum.strataframe.net/FindPost21733.aspx</link><description>Hi Trent&lt;/P&gt;&lt;P&gt;I don't think is my code, I add a new form named CustomersManteinance2 to the CRMSample application, add some controls and the ListView, is pretty much same as the original, the main difference is in the ListView I use the properties to handle the Add/Edit/Delete buttons.&lt;/P&gt;&lt;P&gt;If you give a try you will notice first it needs add the SetCreditCardButtonState() after requery the list in the CustomersBO_Navigated event, for prevent the Add button activates.&lt;/P&gt;&lt;P&gt;Second, the problem I have in my application, if you select an item of the List of credit cards the three buttons activate even the EditState of the form is not in edit mode.&lt;/P&gt;&lt;P&gt;In my application I have the same here, and as the sample if I use code for the ListView properties all works, but if I use the properties not.&lt;/P&gt;&lt;P&gt;In the main form&amp;nbsp;I add a buttom named Customers 2 for show the form I did.&lt;/P&gt;&lt;P&gt;Hope can find a solution,&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Thu, 29 Jan 2009 17:59:42 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: ListView activate Add/Edit/delete/ buttons when select an item of the list</title><link>http://forum.strataframe.net/FindPost21719.aspx</link><description>Well, then this must be something within your code here.&amp;nbsp; Please post a sample reproducing as I know that this works, so there is most likely something else in the forumula here.</description><pubDate>Thu, 29 Jan 2009 11:20:41 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: ListView activate Add/Edit/delete/ buttons when select an item of the list</title><link>http://forum.strataframe.net/FindPost21718.aspx</link><description>Hi Trent , Edhy&lt;/P&gt;&lt;P&gt;I'm using tle last one (the beta).&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Thu, 29 Jan 2009 11:16:08 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: ListView activate Add/Edit/delete/ buttons when select an item of the list</title><link>http://forum.strataframe.net/FindPost21715.aspx</link><description>I don't think this is a bug.&amp;nbsp; Like Edhy asked, what version of SF are you using?</description><pubDate>Thu, 29 Jan 2009 10:07:32 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: ListView activate Add/Edit/delete/ buttons when select an item of the list</title><link>http://forum.strataframe.net/FindPost21712.aspx</link><description>Hi Juan Carlos,&lt;/P&gt;&lt;P&gt;I think that was fixed before.&amp;nbsp; What version of SF are you using?</description><pubDate>Thu, 29 Jan 2009 08:09:51 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>