or
private void Calendar_ElementRender(object sender, RenderElementEventArgs e){ if (Calendar.SpecialDays.Contains(e.Day, new MyComparer())) { e.Element.NumberOfColors = 1; e.Element.BackColor = Color.Orange; e.Element.BorderColor = Color.DarkBlue; } else { e.Element.ResetValue(LightVisualElement.NumberOfColorsProperty, ValueResetFlags.Local); e.Element.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local); e.Element.ResetValue(LightVisualElement.BorderColorProperty, ValueResetFlags.Local); }}
public class ListViewItemButton : SimpleListViewVisualItem { private RadButtonElement buttonElement; private LightVisualElement contentElement; private StackLayoutPanel stackLayout; protected override void CreateChildElements() { base.CreateChildElements(); this.stackLayout = new StackLayoutPanel(); this.stackLayout.Orientation = Orientation.Horizontal; this.stackLayout.EqualChildrenWidth = true; this.contentElement = new LightVisualElement(); this.contentElement.StretchHorizontally = true; this.contentElement.MinSize = new Size(60, 0); this.stackLayout.Children.Add(this.contentElement); this.buttonElement = new RadButtonElement(); this.buttonElement.Text = "Remove "; this.stackLayout.Children.Add(this.buttonElement); this.Children.Add(this.stackLayout); } protected override void SynchronizeProperties() { base.SynchronizeProperties(); this.Text = ""; this.buttonElement.Text = "Remove "; } protected override Type ThemeEffectiveType { get { return typeof(SimpleListViewVisualItem); } } }}private void HandleRadListViewVisualItemCreating(object sender, ListViewVisualItemCreatingEventArgs e) { e.VisualItem = new ListViewItemButton(); }DataRowView m_dgrvCurrent;m_dgrvCurrent = (DataRowView) (radGridViewCountries.DataSource as BindingSource).Current;this.RichTextBox1.RichTextBoxElement.BackColor = System.Drawing.Color.Gray;

var relation = new GridViewRelation(_StockGridView.MasterTemplate);relation.ChildTemplate = _PartsTemplate;relation.RelationName = "PartToArticleCode";relation.ParentColumnNames.Add("ID");relation.ChildColumnNames.Add("ArticleCodeID");this._StockGridView.Relations.Add(relation);Unfortunatly... this does not work (anymore!). It worked the first time I created the form etc., but after I've added a control to a container to the form (not to the grid), the gridview refuses to show the hierarchy anymore.