Home Forums WinForms controls Other WinForms controls Images in a Wincombobox Reply To: Images in a Wincombobox

User (Old forums)
Member
Post count: 23064

If you are dataBound, this will work automatically. If you are working in an unbound fashion, you can do something like this :

System.Drawing.Bitmap image = new Bitmap(@””);
Xceed.Editors.WinComboBox myCombo = new Xceed.Editors.WinComboBox();

Xceed.Grid.Column col = new Xceed.Grid.Column(“Picture”,typeof(Bitmap));
myCombo.DropDownControl.Columns.Add(col);
myCombo.DropDownControl.DataRows[0].Cells[1].Value = image;

Imported from legacy forums. Posted by Matt (had 172 views)