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
990
text wrapping field in grid
posted

I'm stuck on something trivial! How do I set a field to wrap across several rows of the grid, ie a text field there there are 100's chars of text?

Setting Field.RowSpan seems to work if there are newlines, but not if I just want continous text to wrap.

Thanks

Parents
No Data
Reply
  • 990
    Verified Answer
    posted

    For other's info, I found this explaination in the archive which works great:

    You need to set the TextWrapping of the XamTextEditor for that column.
    e.g.
       <igDP:XamDataGrid BindToSampleData="True">
        <igDP:XamDataGrid.FieldLayouts>
         <igDP:FieldLayout>
          <igDP:FieldLayout.Fields>
           <igDP:Field Name="name">
            <igDP:Field.Settings>
             <igDP:FieldSettings EditorType="{x:Type igEditors:XamTextEditor}">
              <igDP:FieldSettings.EditorStyle>
               <Style TargetType="{x:Type igEditors:XamTextEditor}">
                <Setter Property="TextWrapping" Value="Wrap"/>
               </Style>
              </igDP:FieldSettings.EditorStyle>
             </igDP:FieldSettings>
            </igDP:Field.Settings>
           </igDP:Field>
          </igDP:FieldLayout.Fields>
         </igDP:FieldLayout>
        </igDP:XamDataGrid.FieldLayouts>
       </igDP:XamDataGrid>

Children
No Data