CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

ComboBox binding

rated by 0 users
Not Answered This post has 0 verified answers | 1 Reply | 1 Follower

Top 100 Contributor
72 Posts
Russ Blair posted on Wed, Sep 29 2010 1:07 PM

I have a Business Object that has a ReadOnlyList propertycalled “Lots”. I have bound the WPF form to the Business Object. I would like to bind a ComboBox to the ReadOnlyList “Lots” property of the Business Object.

 

<ComboBox x:Name="LotFKComboBox"

          ItemsSource="{Binding Lots}"

          DisplayMemberPath="Code"

          SelectedValuePath="LotPK"

          SelectedValue="{Binding LotFK/>

 

The binding to the property appears to work because the ComboBox dropdown is the right height however the it only displays blank values!

 

Any suggestions why this isn’t working?

 

Thanks

Russ.

All Replies

Top 100 Contributor
72 Posts

I found it!  The property Setter was using LoadProperty instead of SetProperty so the changed event was never firing to tell the data binding to update the UI.

Page 1 of 1 (2 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems