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. Image for the cookie policy date
close icon

Binding ArrayList to Dropdown

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

1 Reply

PR Purusothaman R Syncfusion Team November 22, 2006 05:28 AM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon