This example creates a custom lookup control that does not display the Close button in the dropdown (the fCloseButtonStyle
field is set to BlobCloseButtonStyle.None
). The example overrides the LookUpEdit.CreatePopupForm
method to return a custom edit form:
public class UserLookUpEdit : LookUpEdit {
// ...
protected override DevExpress.XtraEditors.Popup.PopupBaseForm CreatePopupForm() {
return new UserPopupLookUpEditForm(this);
}
}
public class UserPopupLookUpEditForm : PopupLookUpEditForm {
public UserPopupLookUpEditForm(LookUpEdit owner)
: base(owner) {
fCloseButtonStyle = BlobCloseButtonStyle.None;
}
}
- Form1.cs (VB: Form1.vb)
- MyLookUpEdit.cs (VB: MyLookUpEdit.vb)
(you will be redirected to DevExpress.com to submit your response)