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

ComboBox with images

I would like to have a grid with comboboxs and the combobox to have images items or both text and image. Is that possible to be done?

2 Replies

AD Administrator Syncfusion Team December 23, 2005 05:03 PM UTC

Hi Prokopis, You can''t do this with the normal combobox cell. The dropdown part of the combobox is the windowsform''s ListBox. Instead of a ComboBox celltype, you can use a GridListControl celltype and display an icon in a column. Here is a sample. This will work if you have an ArrayList/ DataTable as the datasource. You can create an DataTable object and load the items to it. This is achieved by subscribing to the dropdown''s embedded grid''s PrepareViewStyleInfo event and dynamically setting e.Style.ImageIndex and e.Style.ImageList. Best regards, Jay


PR Prokopis December 24, 2005 10:19 AM UTC

Thank you very much Jay. Your sample is good. Very fast correspondence.

Loader.
Live Chat Icon For mobile
Up arrow icon