Hi,
I am familier with the cell merging in wingrid in a column, is there a way to do the same thing in a row. i.e. if in a row (merging based upon same text) if two adjustant cell have same value them I want to merge them in the row. My wingrid is read only so there is no issue regarding editing. Any code sample will be highly appreciated.
Thanks,
CreationFilters allow you to modify the UIElements of the control. You can remove, add, or reposition the elements. It's something of an advanced feature.
I recommend starting with the Infragistics UIElementViewer Utility. That will help you see and understand the UIElement structure of the grid. There are lots of sample code snippets here on the forums for CreationFilters.
Basically, in your case, what you would want to do is trap for the creation of the CellUIElement for the cells in the columns you are concerned with merging. You could examine the cell values of the two cells (assuming you want to merge cells that have the same value) and when they are the same, you would cancel the creation of one of the CellUIElements and extend the other one to cover the area of both cells.
Thanks for letting me know there is no such feature. Regarding the Creation Filter, I am not too familiar with this can you suggest where can I get started with Creation Filter?
No, there's no built-in functionality in the grid to merge two cells in the same row.
You should Submit a feature request to Infragistics.
You could probably implement something like this yourself using a CreationFilter. It would be pretty easy, assuming that the cells are not editable. If you need the user to be able to edit, it complicates the matter quite a bit.