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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Data Binding with MultiSelection DropDown

Thread ID:





71237 Jan 23,2008 07:35 AM UTC Jan 28,2008 08:40 AM UTC ASP.NET Web Forms (Classic) 3
Tags: Tools
Asked On January 23, 2008 07:35 AM UTC


I am using a multi-selection drop-down and trying to bind it at run-time. Everything seems to be working fine except one. The values appearing in the list are proper but when I select a value, its corresponding id is being displayed in the text.
I have used the following code:

mddlIncludeExcludeCargoType.DataSource = cargoTypeList;
mddlIncludeExcludeCargoType.DataValueField = CargoType.Binding.CargoTypeId;
mddlIncludeExcludeCargoType.DataTextField = CargoType.Binding.CargoTypeName;

Can anyone suggest why this is happening?

Rajarajeswari S [Syncfusion]
Replied On January 24, 2008 08:59 AM UTC


Thanks for using Syncfusion products.

I am able to reproduce the issue that you have mentioned, this is because of, you have given different field names for DataTextField and DataValueField.

DataTextField - Field in the data source which provides the item Text.
DataValueField - Field in the data source which provides the item Value.

If you wants to have both to be same you have bind these properties with same fields. Please refer the below code snippet which illustrates this:

this.MultiSelectionDropDown1.DataSource = dt;
this.MultiSelectionDropDown1.DataTextField = "Value";
this.MultiSelectionDropDown1.DataValueField = "Value";

Please refer the sample from the below link which illustrates this:


Please let me know if this helps you out.


Saurabh Srivastava
Replied On January 24, 2008 09:19 AM UTC


Thanks for your reply. But if we take a generic ASP.NET drop-down control, the two properties are provided so that the "Text" property is used to show actual "text" in drop-down while "value/id" property is used to bind each text data with its underlying id/value for internal processing.

Same should be the case with Syncfusion Multiselection Drop-down otherwise, there is no point of having two properties - DataTextField and DataValueField.


Rajarajeswari S [Syncfusion]
Replied On January 28, 2008 08:40 AM UTC

Hi Saurabh,

Thanks for using Syncfusion products.

We have analyzed your issue and suspect this as a defect. Could you please follow the incident # 40893 to get more details on this issue.

Please let me know if you have any other concerns.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon