csla 3.6.0 binding combobox problem

csla 3.6.0 binding combobox problem

Old forum URL: forums.lhotka.net/forums/t/6014.aspx


PederSvaleng posted on Thursday, December 18, 2008

I've just upgraded to csla 3.6.0 from 3.0.2 and now my combox (dropdownlist style) have suddenly got this strange behaviour. I have to select it's member two times to set it. It works when I set style to dropdown (strange?). But I don't wan't it to be editable.

My combobox's bindingsource is bindingSourceCodeListRead

public class CodeListRead : Csla.ReadOnlyListBase<CodeListRead, CodeChild>

The ValueMember of the combobox is CdCode (from CodeChild) and DisplayMember is CdDisplayname.

In the Databinding section in the Property window for my combobox i have set

SelectedValue    to bindingSourcePatientSwitch - GenderCode
Text                   to bindingSourcePatientSwitch - GenderCodeDisplayName

DataSource update mode is set to OnPropertyChanged.

Any soulutions out there?

McManus replied on Thursday, December 18, 2008

Hey Peder,

Removing the databinding to the Text property should solve your problem.

Grtz.
Herman

PederSvaleng replied on Thursday, December 18, 2008

And now it works... You saved my day!

Thank you!

PederSvaleng replied on Thursday, December 18, 2008

And now it works as I orginally did it..

I had an old version of the bindingsource refresh component from csla in my designer. I changed it to the latest version and now it works the old way.

Copyright (c) Marimer LLC