Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1560
UltraComboBoxEditor issue
posted

 Hi all,

Let's say that i have a business entity Employee (ID, Name, EmployeeCategoryId) and another entity EmployeeCategory (Id,Description).

On my EmployeeDetailForm, I have a ultracomboboxeditor that is binded on a bindingsourceEmployeeCategory and the Value property = bindingSourceEmployeeDetail - EmployeeCategoryId. 

So the ultracomboboxEditor show a list of employee category. 

 My problem is the following :

When I create a new Employee, the EmployeeCategoryId (which is an Int) is set to 0.Now the ultracomboboxeditor show 0, how can i fix this? I'd like it to show nothing, nothing should be selected (that's how the combobox of MS behaves).

Parents
  • 469350
    Verified Answer
    Offline posted

    What is the data type of the field in your data source? If it's an int, then it obviously cannot accept a null and will default to 0. This has nothing to do with the UltraCombo. 

    If that's not the case and the field in the data source can accept null, then perhaps you need to set Nullable on the UltraCombo to true? 

     

Reply Children