This is dead easy with a database. Just select one field to be an Item and another (normally the unique key ID in my experience, but not always) to be the ValueMember.
Is there a way to configure this relationship manually?
This is dead easy with a database. Just select one field to be an Item and another (normally the unique key ID in my experience, but not always) to be the ValueMember.
Is there a way to configure this relationship manually?
Public Class cComboItem
Private iValue As Integer
Private sDisplay As String
Public Overrides Function ToString() As String
Return sDisplay
End Function
Public Sub New(ByVal Value As Integer, ByVal Display As String)
iValue = Value
sDisplay = Display
End Sub
Public ReadOnly Property Value() As Integer
Get
Return iValue
End Get
End Property
Public ReadOnly Property Display() As String
Get
Return sDisplay
End Get
End Property
End Class
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.