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.

How to set the BackgroundImage dynamically of a ComboDropDown ?

Thread ID:





94150 Apr 26,2010 09:43 AM Apr 27,2010 07:37 AM Windows Forms 1
Tags: Tools
Eric van Dinter
Asked On April 26, 2010 09:43 AM


I am using version
I am testing with the ComboDropDownDemo_2008 sample.

Is it possible to show the image of the selected gridlistcontrolitem as the BackgroundImage of the ComboDropDown control?

I changed the code of Grid_CellClick to:

if (this.gridListControl1.SelectedIndex != -1)
this.comboDropDown2.TextBox.Text = this.gridListControl1.SelectedItem.ToString();
this.comboDropDown2.BackgroundImage = (Image)this.gridListControl1.ImageList.Images[this.gridListControl1.SelectedIndex];
this.comboDropDown2.TextBox.Text = String.Empty;
this.comboDropDown2.BackgroundImage = null;


But after setting of the BackgroundImage the result of BackgroundImage is still null.

What am I doing wrong ?

Thanks in advance !


Lingaraj S [Syncfusion]
Replied On April 27, 2010 07:37 AM

Hi Eric,

You have posted a similar kind of query in Incident (#67378). So please follow-up your queries with Incident (#67378).

Thank you for using Syncfusion products.

Lingaraj S.


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.