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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

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

Hello,

I am using version 8.2.0.18
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];
}
else
{
this.comboDropDown2.TextBox.Text = String.Empty;
this.comboDropDown2.BackgroundImage = null;
}

this.comboDropDown2.PopupContainer.HidePopup(PopupCloseType.Done);
....

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

What am I doing wrong ?

Thanks in advance !

Eric

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.

Regards,
Lingaraj S.

CONFIRMATION

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.

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

;