Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
XamDataGrid Height of field doe not resize when changing the TextWrapping


I have a field in my grid where the TextWrapping is binded to a property of my DataRecord. When I change the value of the TextWrapping, The height of the cell is not resized to view all the lines.

The new TextWrapping is properly applied because if I manually resize the height of the item, I see multiple lines.

what Am I missing?

                        <igDP:Field Name="Service" Label="Service Description" Width="500">
                                <igDP:FieldSettings LabelTextAlignment="Left" AllowEdit="False">
                                        <Style TargetType="{x:Type igEditors:XamTextEditor}">
                                            <Setter Property="TextWrapping" Value="{Binding DataItem.TextWrapping}" />
  • 26425
    Offline posted

    Hello Marc, 

    Please try the following. Set DataRecordSizingMode to SizedToContentAndIndividuallySizable


    Your best bet would also be toggling cell virtualization via AllowCellVirtualization to help with this as well. This is also demonstrated in the link above.

    Let me know if you have any questions.  

Reply Children