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
785
Merge functionality - checkboxes and buttons
posted

Two questions:

1. If merging is done on a column containing checkboxes, a checkbox is displayed in the middle of the group of merged cells. Is it possible to have it displayed on the first row of the group instead?

2. If merging is done on a column containing buttons, the buttons are not visible at all. We did set the property "ButtonDisplayStyle" to "always" but the buttons are showing only when we click on the cell. How can we ensure the visibility of a button if its column is merged?

Thanks,
Annie

P.S. We are using version 9.1.20091.2085.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    annie21d said:
    1. If merging is done on a column containing checkboxes, a checkbox is displayed in the middle of the group of merged cells. Is it possible to have it displayed on the first row of the group instead?

    You can align the checkbox to the top:


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                CheckEditor checkEditor = new CheckEditor();
                checkEditor.CheckAlign = ContentAlignment.TopCenter;
                e.Layout.Bands[0].Columns["Boolean 1"].Editor = checkEditor;
                e.Layout.Bands[0].Columns["Boolean 2"].Editor = checkEditor;
            }

    annie21d said:
    2. If merging is done on a column containing buttons, the buttons are not visible at all. We did set the property "ButtonDisplayStyle" to "always" but the buttons are showing only when we click on the cell. How can we ensure the visibility of a button if its column is merged?

    Since the buttons don't merge, anyway, you can simply set the MergedCellStyle on the column to Never.

Children