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).
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?
It works! Thanks!
This depends on the DropDownStyle. If it's DropDown, thn the user can type into the Combo and so it will accept any value whetherit's on the list or not. If you want to limit the user to only values on the list, then you need to set DropDownStyle to DropDownList.