Hello,
I have a grid with a self-referencing hierarchy.Technically this is working well, but I want to set the following individual styles:
1) because the columns are the same between the bands, I do not want to repeat the column-headers on the sub-band.2) The first column is gouped with cell-merging. Because of this, there is a grey separator on the right side of the grouped column. How can I remove this line?3) I want a separate cell style on the nested level. How can I modify the style of these cells separate to the cells on the first level? Hint: I have re-templated the ig:CellControl, the solution for the sub-band cells have to be compatible with the retemplating
For clarification I've attached a screenshot displaying my wishes.
Thanks and best regards,Josef.
Hello Josef,
Thank you for your email. I have been looking into the appearance that you have described and I have created a sample application for you, that demonstrates how you can achieve it. To remove the grouping delimiter, I have created styles for the FixedBorderCellControl and FixedBorderHeaderCellControl. Also I have created style for the CellsPanel in order to remove the header from the ChildBands and style for the CellControl in order to color the cells in the Kontakt column from the child bands.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hello Krasimir,
thank you for this sample.Most of it worked in my project.Unfortunately there are some differences between your sample and my project.
I've attached a modified version of your sample showing these issues.On the next post I'll put a screenshot illustrating them. Somehow I can only attach one file per post....
Here the main differences and what they cause:
1) I do not use autogenerated columns, but a custom ColumnLayout.This is, because I have to put more then text in a column, for what I use TemplateColumns.To get the cell-merge working, I have the following code in the constructor: ContactGrid.GroupBySettings.GroupByColumns.Add(ContactColumn); Using this, the coloring of the first child-cell does not work any more.I've put in code to color the second child-cell, too, and this works.
2) Something is weired with the margins/paddings within the first column.When hovering over the cells, the content "hops" somehow.Sometimes when you hover over a cell and leave it on the left side, two overlapping contents are visible.You can see it on the image.I would like eleminating the hopping.
Thanks again for your help.Last time I did not see your post some hours ago,because I get the answers by google reader and there is a delay until I can see it...
Josef.