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
595
Auto sizing the columns not working
posted

Hi,

I have tried different possibilities of AutoFit and Autosize but Auto sizing not works. PFA the sample.

AutoSizeTest.zip
Parents
No Data
Reply
  • 29085
    Offline posted

    Hello Ramesh,

    I've reproduced the behavior you've described with the cell text getting cut off. To work around this you can restyle the underlying XamTextEditor for each cell by adding TextWrapping.

    eg. Add the following snippet to your datagrid's FieldSettings 

    <igWpf:FieldSettings.EditorStyle>
     <Style TargetType="{x:Type igWpf:XamTextEditor}">
      <Setter Property="TextWrapping" Value="Wrap" />
     </Style>
    </igWpf:FieldSettings.EditorStyle>

    I've attached an image of the "expected results" after applying the code above. Let me know if this does not meet your expectations or have any questions.

    TextWrap.zip
Children