Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

Reply To: Combobox ITypeEditorControl binding

$
0
0

Sorry UpkarS, the problem is not when displaying Currency properties but when using Currency as a property on another object.
Let’s have a Supplier class with a single Currency property:

Public Class Supplier
    Property Currency As Currency
End Class

Let’s load PropertyGrid pg with a new instance of Supplier with a certain Currency:

    Public Sub New()
        InitializeComponent()

        Dim s As New Supplier
        s.Currency = New Currency(Currency.Ids.GBP)
        pg.AvailableEditors.Add(New PGEditor_Currency()) 'pg is an instance of C1PropertyGrid
        pg.SelectedObject = s
    End Sub

The combobox is loaded, but I can’t see the GBP currency selected on it.
Am I binding it properly?


Viewing all articles
Browse latest Browse all 14170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>