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?
Hi,
No, unfortunately, the grid still treats every cell update individually. Since it doesn't know you will be updating all of the cells in the group, it has to split them up when one of them goes into edit mode.
You should Submit a feature request to Infragistics and perhaps this functionality can be added in a future release.
It might be possible to get the behavior you want using a CreationFilter to handle the elements yourself, but this would be very complex.
Another option you might consider is to disable the column using the CellActivation property on the column. Then you could trap the grid's MouseUp event and determine which Merged cell was clicked and toggle the state of the cells yourself. This way, the cell never goes into edit mode and not splitting occurs, but the user can still toggle the checkboxes.
No, there have been no changes in this behavior since my previous reply.
Hi Mike,
Has this feature been implemented in 10.3? In our project we are using checkbox in a merged column. And it displays other check boxes when we select the cell(of checkbox) of merged rows. Also user are complaining that not all merged rows get selected when they hit merged checkbox. But we -developer can not reproduce that scenario and as per user this issue happens intermittently.