Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Merged columns and ImageBackground
posted

Hi Infragistics team,

I have an UltraGrid with a merged column and two normal columns.
If the ActiveRowAppearance.ImageBackground is set, it is not applied to the merged column. So in the active row, only the two normal columns
have the ImageBackground. In the merged column the default blue background is shown.

public Form1()
{
    InitializeComponent();

    this.initializeGrid();
    this.bindData();
}

private void initializeGrid()
{
    this.ultraGrid1.DisplayLayout.Override.ActiveRowAppearance.ImageBackground = WindowsFormsApplication1.Properties.Resources.ActiveGridRow;
    this.ultraGrid1.DisplayLayout.Override.ActiveRowAppearance.ImageBackgroundStyle = Infragistics.Win.ImageBackgroundStyle.Stretched;

    this.ultraGrid1.DisplayLayout.Bands[0].Columns["Col1"].MergedCellStyle = Infragistics.Win.UltraWinGrid.MergedCellStyle.Always;
}

private void bindData()
{
    var list = new List();
    list.Add(new WindowsFormsApplication1.ListItem { Col1 = "Test1", Col2 = "Test1", Col3 = "Test1" });
    list.Add(new WindowsFormsApplication1.ListItem { Col1 = "Test1", Col2 = "Test2", Col3 = "Test2" });
    list.Add(new WindowsFormsApplication1.ListItem { Col1 = "Test1", Col2 = "Test3", Col3 = "Test3" });
    this.bindingSource1.DataSource = list;
}


Who can help?
Thanks a lot

Details: Windows.Forms UltraGrid 2015.2 V15.2.20152.2023