Hello. When I try to edit a merged cell value in the UltraWInGrid every cell of the merged cell can enter the Edit Mode. Is there any way that just one of the merged cells (or the whole merged cell) would enter the edit mode?
No, there's no easy way to do this. Merged cells is just a way of displaying the cells merged. The cells themselves still exist separately in the data source, so they can be edited individually.
Thanks a lot Mike, could you suggest the best solution for resolving my problem? I have to use a list of objects as a datasourse for the grid. I need to make something like "grid in grid" functionality. It has to be the plain table without expantion indicators. Merged cells would work great if I could edit them.
P.S. Right now I'm trying to resolve this problem using Creation Filter, but having some difficulties with it. Is it possible to fix that with a Creation Filter?
I'm afraid I don't know of any easy solutions to this. I doubt a CreationFilterwould help - the CreationFilter only allows you to modify UIElements, but it's not a UIElement you need to modify here, it's an editor.
If the cell is just a regular text cell, you might be able to trap the ControlAdded event of the grid and watch for the addition of a TextBox control and then resize it to cover all of the merged cells, but I'm not sure this will work or if you will even be able to change the position of the cell.
You could trap the CellChange or maybe AfterExitEditMode event and just update all of the merged cells with the same (new) value if you don't mind that the user will still appear to only be editing a single cell.