We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

databinding ComboBoxAdv NULL value

Thread ID:

Created:

Updated:

Platform:

Replies:

79662 Feb 19,2009 09:00 PM UTC Mar 3,2009 12:18 PM UTC Windows Forms 3
loading
Tags: Tools
Lan Mo
Asked On February 19, 2009 09:00 PM UTC

Hi there,
V4.4.0.51, GGC and ComboBoxAdv

GGC displays pavement table data. ComboBoxAdv display street pickup list etc.

for Syncfusion.Windows.Forms.Tools.ComboBoxAdv,
I use following code to bind a ComboBoxAdv to a table field.

//set ComboBoxAdv list to a street lookup table
ComboBoxAdv ptmpComboBox =new ComboBoxAdv();
ptmpComboBox.DataSource=dtStreetTable;
ptmpComboBox.DisplayMember="street_name";
ptmpComboBox.ValueMember="street_code";

//bind ComboBoxAdv selectedvalue to dtPavement - pavemenet table's street field which stores street code of the pavement is on

ptmpComboBox.DataBindings.Add("SelectedValue",dtPavement,"street ");
the problem is:
when the pavemenet street field data is null (empty), the ComboBoxAdv will always display the first item in the pickup list. I want to it display empty (null) too like the GGC did.

Please see my attched screen shot. see the Street field in the GGC grid which is empty (null), but in the below street pickup control, it displays the first item in the picklist which is unknown/undefined.

does the ComboBoxAdv have property to set up so that it can display empty when the binding data is null?

Thanks,






NullError_46b9f2a2.zip

Administrator [Syncfusion]
Replied On February 24, 2009 09:21 AM UTC

Hi Lan Mo ,

I am afraid that I was not able to see the issue of 'ComboBoxAdv always display the first item in the list when the row data is null (empty)' in 4.4.0.51 version.

Please try reproducing the issue from the sample below and let me know if I missed out anything in reproducing the issue.

http://files.syncfusion.com/support/Tools.Windows/4.4.0.51/F79662/Tools_ComboBoxAdv_DataBind_NullValue.zip

Please try setting SelectedIndex of ComboBoxAdv to -1 to display empty value.

Please let me know if you have any questions.

Regards,
Jaya



Lan Mo
Replied On February 24, 2009 09:46 PM UTC

Hi Jaya,

thank you for your help.

I've revised your sample. Please see my comments on the form, you will see the problem.

Thanks,


Lan



Tools_ComboBoxAdv_DataBind_NullValue_938d8094.zip

Administrator [Syncfusion]
Replied On March 3, 2009 12:18 PM UTC

Hi Lan Mo,

Thanks for the update.

We are glad to inform you that this issue has been fixed in our latest Syncfusion Essential Studio 2009 Volume 1 final release 7.1.0.30. This build is available for download from the following location.

Download link:


http://www.syncfusion.com/downloads/latestversion/default.aspx

Unlock key:

If your Essential Studio license is valid, you will be able to obtain the key to install this version from your Direct-Trac account or contact your Syncfusion Sales Representative or e-mail salessupport@syncfusion.com for further assistance.

Please let me know if there are any concerns.

Regards,
Jaya



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;