FunkyMonkey wrote:
Should this allow me to use the FullName property as the DisplayMember for a combo box? That is what I'm trying to do.
Ah. No then you should add a column. TypedLists are derived from datatables, and these produce properties for binding through the DataView which only checks the columns, so no matter which property you add, it won't show up.
Or should I be adding a field in the
' __LLBLGENPRO_USER_CODE_REGION_START AdditionalFields
' be sure To Call toReturn.Expand(number of New fields) first.
' __LLBLGENPRO_USER_CODE_REGION_END
region?
Fields are added for dataretrieval. You're adding a column. So to this region:
' __LLBLGENPRO_USER_CODE_REGION_START InitClass
' __LLBLGENPRO_USER_CODE_REGION_END
in InitClass in the typedlist class, you'll add:
Dim fullName As New DataColumn("FullName", GetType(String), "Firstname + LastName")
fullName.ReadOnly=True
this.Columns.Add(fullName)
which effectively adds a computed column to the typedlist. Then, just fill your typed list and it should be showing the column values as well.