Hi,
I have the requirement to display some Icon in the cell that spans over other cells - see picture
(removed)
It worked well before columns freezing was turned on for two first columns on the grid via the following code
…
var field = new UnboundField()
{
Name = column.FieldName,
Label = column.Title,
Width = new FieldLength(1, FieldLengthUnitType.Auto)
};
field.Settings.AllowFixing = AllowFieldFixing.Near;
field.FixedLocation = FixedFieldLocation.FixedToNearEdge;
}
After this that Icon with 'A' is being clipped - see below
I've tried to fix it by overriding styles but it didn't solve the issue.
<Style TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="Clip" Value="{x:Null}"/>
</Style>
<Style TargetType="{x:Type igDP: DataRecordCellArea}">
Could you please advise how to fix the issue so that Icon won't be clipped with "freeze columns' turned on?
I think the adorner approach is the right one and it would work with any grid, except... xamdatagrid.
There is a bug with this solution. When you scroll and the cell is not visible anymore, the cellvaluepresenter is recycled for another cell and the adorner is misplaced. I've tried to turn off the virtualization (RecordContainerGenerationMode="PreLoad" CellContainerGenerationMode="PreLoad" AllowCellVirtualization="False"), but no cigar.
Any idea?
Hello Andrey,
Our engineering team have suggested me to use Adorner as the best way to achieve this. I have attached a sample, please download and test it in your end, and let me know if you have any question.
Thank you,Sam