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>