CustomDisplayText
RepositoryItem のを処理する必要があります
「タイプ」列が次のようなデータオブジェクトにバインドされている場合...
public class SomeType
public property Name as string
public property Description as string
public property Code as string
End Class
DisplayText
セルの にセルの値を入力する必要があります。
Private Sub RepositoryItem_CustomDisplayText(sender As Object, e As DevExpress.XtraEditors.Controls.CustomDisplayTextEventArgs) Handles RepositoryItemLookUpEdit1.CustomDisplayText
Try
Dim currentSomeType = TryCast(e.Value, SomeType)
If Not currentSomeType Is Nothing Then
'find the correct SomeType
Dim currentSomeTypeName As String = currentSomeType.Name
e.DisplayText = currentSomeTypeName
End If
Catch exception As Exception
End Try
End Sub