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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ComboBox with images

Thread ID:





39022 Dec 22,2005 08:49 PM UTC Dec 24,2005 10:19 AM UTC WinForms 2
Tags: GridControl
Asked On December 22, 2005 08:49 PM UTC

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?

Administrator [Syncfusion]
Replied On 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

Replied On December 24, 2005 10:19 AM UTC

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


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