with your class-Property try it like this :
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
public Associa Associa
{
get { return _Associa; }
}
private Associa _Associa = new Associa();
your class itself I modified like this :
[System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
public class Associa
{
public string FunCode {
get { return this._FunCode; }
set {
if (string.IsNullOrEmpty(value)) {
value = "NULL";
}
this._FunCode = value;
}
}
private string _FunCode = "NULL";
public static Associa Generate(string pcFunCode)
{
Associa loAssocia = new Associa();
loAssocia.FunCode = pcFunCode;
return loAssocia;
}
public Associa()
{
_FunCode = "NULL";
}
public Associa(string pcFunCode)
{
_FunCode = pcFunCode;
}
public override string toString()
{
return _FunCode;
}
}
now it should work like you want ...