Print Page | Close Window

.Description not updating

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=1582
Printed Date: 23 November 2024 at 10:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: .Description not updating
Posted By: Gutauckis
Subject: .Description not updating
Date Posted: 23 December 2004 at 1:30pm
I notice once the property grid has been displayed, if I try to change the description of an item, it does not paint itself. If I click another item in the grid and then go back to the item I changed the description has been updated.

Here is what I am doing:
       'Sets up the item
        Set Item = Category.AddChildItem(PropertyItemString, "Description", "")
         With Item
         &nbs p;      .Description = "Material Name"
         &nbs p;      .Tag = ID_PROPERTY_MATERIAL_NAME
         &nbs p;      .Flags = ItemHasComboButton
         &nbs p;        LoadMaterialGrid Item 'this loads the combo list with some names
          End With

Now in the program

Private Sub wndPropertyGrid_ValueChanged(ByVal Item As XtremePropertyGrid.IPropertyGridItem)

    Select Case Item.Tag

        Case Defines.ID_PROPERTY_MATERIAL_NAME:
         Item.Description = "New Name"
    End Select
   

End Sub

This does not actaully paint the grid with the new text. The only way to get the new text is to click another item in the grid and then click back on the original item.




Replies:
Posted By: SuperMario
Date Posted: 24 December 2004 at 8:19pm
Can you reproduce this in one of the sample projects?


Posted By: Gutauckis
Date Posted: 25 December 2004 at 9:09pm
Yes, I can. I open up the visual basic sample app for "property grid".

Add  Item.Description = "Hello" to the  wndPropertyGrid_ValueChanged event. I added the line after the "Debug.Print Item.Value" line.

Run the app.

Change a value, any one of the items. I changed window size; press enter and you will see the description does not change.

Now click on a different item then click back on the item you changed the value for. you will then see the updated description.




Posted By: Gutauckis
Date Posted: 06 January 2005 at 6:01pm
Has anybody confirmed this to be a bug? Is there a workaround?


Posted By: Gutauckis
Date Posted: 16 February 2005 at 12:05pm
New version and this has not been fixed....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net