I have a XamDataGrid that is being populated by a DataTable (the columns are auto-generated). I have some cells that are multi-line and need to have the rows automatically size the rows to fit the entire contents of those cells (some of the contents can have upto 20 lines give or take).
I have attempted to search the forums but I am only finding threads that are relating to auto-sizing the columns and not the rows.
Here is the settings that I am currently using:
<igDP:FieldLayoutSettings AllowAddNew="False" AllowDelete="False" AllowRecordFixing="Top" AllowClipboardOperations="Copy" AutoFitMode="Always" DataRecordSizingMode="SizedToContentAndIndividuallySizable" HeaderPrefixAreaDisplayMode="FieldChooserButton" /> </igDP:XamDataGrid.FieldLayoutSettings> <igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings AllowRecordFiltering="true" AllowCellVirtualization="True" AllowEdit="False" AutoSizeOptions="All" Height="Auto" Width="Auto" /> </igDP:XamDataGrid.FieldSettings>
Thank you for any help that you can provide!
Hello,
I have been looking in your issue and have found a way for you to achieve this. Basically the trick is to make the XamEditors to wrap their contents and set the DataRecordSizingMode property. Here is xaml snippet you can test out a screenshot of it in action:
<igDP:XamDataGrid x:Name="xamDataGrid1" BindToSampleData="True" Grid.Row="1" >
<igDP:XamDataGrid.Resources>
<Style TargetType="{x:Type igEditors:XamTextEditor}">
<Setter Property="TextWrapping" Value="Wrap"/>
</Style>
</igDP:XamDataGrid.Resources>
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings DataRecordSizingMode="SizedToContentAndIndividuallySizable"/>
</igDP:XamDataGrid.FieldLayoutSettings>
</igDP:XamDataGrid>
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support