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

How to set the BackgroundImage dynamically of a ComboDropDown ?

Thread ID:





94150 Apr 26,2010 01:43 PM UTC Apr 27,2010 11:37 AM UTC WinForms 1
Tags: Tools
Eric van Dinter
Asked On April 26, 2010 01:43 PM UTC


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 11:37 AM UTC

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.

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