databinding ComboBoxAdv NULL value
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
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
SIGN IN To post a reply.
3 Replies
AD
Administrator
Syncfusion Team
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
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
LM
Lan Mo
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
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
AD
Administrator
Syncfusion Team
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 [email protected] for further assistance.
Please let me know if there are any concerns.
Regards,
Jaya
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 [email protected] for further assistance.
Please let me know if there are any concerns.
Regards,
Jaya
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
LM Lan Mo
- Feb 19, 2009 09:00 PM UTC
- Mar 3, 2009 12:18 PM UTC