PanelControl in NoBorder Mode doesn’t use BackColor of Skin

When using Devexpress Controls the PanelControl in „NoBorder“ Style sometimes doesn’t get the apropriet BackColor. This occurs most likly when working with the DeveExpress WizzardControl.

To get around this issue set the BackColor to „Transparent“.

Link to Devexpress topic


Default parameter in C# 4

Simple overload:



Now let’s do this with a default property:

public partial class SettingsForm : XtraForm
public bool ShowRestartRequiredMessage { get; set; }

public SettingsForm(bool showRestartRequiredMessage = false)
ShowRestartRequiredMessage = showRestartRequiredMessage;

We don’t need an overload anymore but nothing changed on the usage of the class




Using EnumColumn in XtraGridView with images

To do this you need an RepositoryItemImageComboBox

RepositoryItemImageComboBox imageCombo = GridControl.RepositoryItems.Add("ImageComboBoxEdit") as RepositoryItemImageComboBox;
imageCombo.SmallImages = imageCollectionTyp;

imageCombo.Items.Add(new ImageComboBoxItem("Zeitraum", MyEnum.Val1, 0));
imageCombo.Items.Add(new ImageComboBoxItem("Gruppe",MyEnum.Val2, 1));

imageCombo.GlyphAlignment = DevExpress.Utils.HorzAlignment.Center;
SellTimeGridView.Columns["Type"].ColumnEdit = imageCombo;