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,AnnieP.S. We are using version 9.1.20091.2085.
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.
Good morning,
One more question regarding the merge of checkboxes. We have a column within our grid containing checkboxes and this column is being merged. If we click on the checkbox to change its value, the checkbox in the row below is now displayed as the two rows contain a different value.
We have code that will change the value of the second row to be the same as the first row as we want both values to be the same regardless if the user click on the first or second checkbox.So when we move out of the cell, the checkbox below is merged again.
Is there a way to "prevent" the display of the second checkbox when the user clicks on the first one to change its value?