Hi,
I am using an ultra combo editor and I set a dataset as the datasource and a specific member as the member to my control by using the designer. I fill my dataset in constructor, but my control does not list the items.
When I set the dataset manually to the control by code its working fine. But if I only define it in the designer notthing happens. Any ideas to solve this?
Thanks, Alex
What is CustomerTitle? Is that the name of a Table or a RelationShip in your DataSet? It looks like the name of a field in table, and if so, that's why it's not working. DataMember needs to indicate which table or relationship in the DataSet that you want to use from the dropdown list in the combo.
I can't see any reason why this would work any differently at run-time or design-time, though. My only guess there is that something in your code is changing these properties when the run the application, but before you set them at run-time.
CustomerTitle is a table in the LookupDataset.
In the CustomerTitle table are two fields. DisplayValue and DataValue.
The CustomerDataset has in the table Customer a field for the value, called C_TITLE. This i set on the Databindings.Value Property over a BindingSource.
This infragistics properties of the comboeditor i set, directly on the LokkupDataset:
DataSource = lookupdataset;
DataMember = CustomerTitle; (name of the table)
DisplayMember = DisplayValue;DataValue = DataValue;
All of these settings are done in designer but its not working. Do we have to set them additionally in code?
No, you should not have to set these properties in code, they should be maintained from design-time to run-time.
Have you tried checking these properties at run-time to see if they are still set to what you set them to at design-time? If they are not, then something in your application code is resetting them.
Hello Alex,
Thank you for the provided feedback.
If you have any other questions, please do not hesitate to contact us.
Hello Mike,
we got it by using binding sources for thecontrols. And we just fill the binding source after the initialize component, then its working.
Thanks for your help.
Alex