Auto-RowHeight in wpf.DataGrid Auto-RowHeight in wpf.DataGrid wpf wpf

Auto-RowHeight in wpf.DataGrid


You can bind Height in the RowStyle.

Assuming you have a property called RowHeight

<DataGrid ItemsSource="{Binding ...}">    <DataGrid.RowStyle>        <Style TargetType="DataGridRow">            <Setter Property="Height" Value="{Binding RowHeight}"/>        </Style>    </DataGrid.RowStyle></DataGrid>