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.

Binding ArrayList to Dropdown

Thread ID:

Created:

Updated:

Platform:

Replies:

52041 Nov 21,2006 12:37 AM Nov 22,2006 12:28 AM General Discussion 1
loading
Tags: General Discussion
Raghavendra
Asked On November 21, 2006 12:37 AM

Hi, I am new to Syncfusion.
I have a list of objects of same type in a Arraylist A.
Now i have to bind this ArrayList to DropDown,
in such a way that i'll display name and i want to retrieve the Id on selection change.

Any solution?

Thank you
Raghu

Purusothaman R [Syncfusion]
Replied On November 22, 2006 12:28 AM

Hi Raghu,

I am assuming that, you are mentioning about ComboDropDown.

You can bind a ArrayList to ComboDropDown control using GridListControl. First you need to bind the ArrayList to the GridListControls's DataSource and set its DisplayMember and ValueMember. Finally set the GridListControl as the PopupContainer for the ComboDropDown.

Kindly look in to the attached sample and let me know whether this is what you actually needed.

Forum_52041.zip

Thanks,
Purusothaman.R

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.

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.

;