Setting DataGrid RowHeight and the following DatagridCell style is making only the row bigger and not the cell from the image inserted. Please help me to correct this.
<Style TargetType="DataGridCell">
<Setter Property="VerticalAlignment"
Value="Center" />
</Style>
<DataGrid x:Name="TestGrid"
CanUserAddRows="False"
AutoGenerateColumns="False"
RowHeight="30">
<DataGrid.Columns>
<DataGridTextColumn Header="Name"
Width="100"
Binding="{Binding Name}" />
<DataGridTextColumn Header="Age"
Width="100"
Binding="{Binding Age}" />
<DataGridTextColumn Header="Location"
Width="100"
Binding="{Binding Location}" />
</DataGrid.Columns>
</DataGrid>
Regards,
Ramakrishna
Ramakrishna