Print Page | Close Window

PropertyGrid [2]

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=3724
Printed Date: 09 June 2024 at 6:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PropertyGrid [2]
Posted By: zetanet
Subject: PropertyGrid [2]
Date Posted: 02 March 2006 at 10:59am

Private Sub wndPropertyGrid_InplaceButtonDown(ByVal sender As Object, ByVal e As AxXtremePropertyGrid._DPropertyGridEvents_InplaceButtonDownE vent) Handles wndPropertyGrid.InplaceButtonDown

UIDebug.Write("Inplace button down. Item.Caption = " + e.item.Caption)

Dim x As New UIConverterSpecifiche

If x.ShowDialog() = DialogResult.OK Then

e.item.Value = x.Value

Debug.Write(x.Value.GetType.ToString & " " & e.item.Value.GetType.ToString)

End If

End Sub

Sorry. SuperMario.

Code is very simple...

My Dialog return a System.ArrayList value type.

After assign the returned value at e arguments

e.item.Value = x.Value

the result is ... typeof variable x is System.ArrayList  while e.Item.Value type is System.String.

WHY?

n.b. System.String is the same type which i use for add the PropertyGridItem to the grid.

Dim ItemDirectory As PropertyGridItem = Category.AddChildItem(PropertyItemType.PropertyItemString, "TEST", value)

ItemDirectory.Flags = PropertyItemFlags.ItemHasExpandButton

 A possible BUG ? or how can i ovverride the problem?

Thanks Super.




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