I'm not sure if you are binding to the DataTable / DataSet returned from the database, or if you are binding to the Release object itself. Not a single control.
If you bind to a DataSet / DataTable, just change your SQL to return the version as a single field:
SELECT table1.Major + '.' + table1.Minor + '.' + table1.Build AS Version ....
However, if you bind to an object, say DropDownList, I think that if you override the ToString method, it will become the display value in DropDownList:
Public Overrides Function ToString() As String
Return _major.ToString & '.' & _minor.ToString & '.' & _build.ToString
End Sub
source
share