Hi
I want to combine firstname and lastname into a user defined property and I have used the following code:
// __LLBLGENPRO_USER_CODE_REGION_START AdditionalNamespaces
public virtual System.String Fullname
{
get
{
return Lastname + ", " + Firstname;
}
}
// __LLBLGENPRO_USER_CODE_REGION_END
My problem is:
I want to bind all my controls dynamically and until now we have used the following code to fill a combobox:
if(entity != null)
{
string text = Convert.ToString(entity.Fields[entityDisplayMember].CurrentValue);
object data = entity.Fields[entityValueMember].CurrentValue;
comboBox.Items.Add(text, data);
}
Since the new user defined property "Fullname" is not in the field collection, I would like to know if there is a way to get values from user defined properties without knowing them by name in advance, something like:
string text = Convert.ToString(entity.GetProperty[entityDisplayMember]);
Thanks!