datagrid does not change fontsize on some rows
See original GitHub issue- .NET Core Version: 2.1.509
- Windows version: 10
- Does the bug reproduce also in WPF for .NET Framework 4.8?: Yes/No
Problem description: When i change the fontSize from code and save it in Settings some rows are not changing the size
Properties.Settings.Default.FontSizeALimpiar` -= 2;
Properties.Settings.Default.Save();
<DataGridTextColumn Header="Grupo" Width="1*" FontSize="{Binding FontSizeALimpiar, Source={x:Static prop:Settings.Default}}" Binding="{Binding Grupo}" >
<DataGridTextColumn.ElementStyle>
<Style TargetType="TextBlock">
<Setter Property="HorizontalAlignment" Value="Center" />
</Style>
</DataGridTextColumn.ElementStyle>
</DataGridTextColumn>
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
C# Change Specific Row Font of Data Grid View
I tried to change font with this code: dataGridView1.Rows[0].DefaultCellStyle.Font = new Font("Arial", 12, FontStyle.Bold);. This didn't work, ...
Read more >Unable to change the defualt font size for DataGrid rows
in order to set the font size/class of the datagrid row, but it has no effect. My guess is the DX framework, when...
Read more >How to set font size of Datagrid column headings?
Option 1. put row panel at the top of the data grid (above the repeating panel); click pinned; remove autoheader; add labels and...
Read more >Set Font and Color Styles in DataGridView Control
Learn about how to set font and color styles in the Windows Forms DataGridView control by setting properties of the DataGridViewCellStyle ...
Read more >How do I resize the font in a datagrid cell so it fits the cell?
The behaviour I am looking for is to adjust the font size (doesn't matter how small it gets as in the final implementation...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would keep the issue open, disabling virtualization is only a workaround that is not always acceptable.
@marbel82 I think that is a slightly different issue. In this case the DataGrid is manually copying the values onto rows and misses some.
Is your CheckBoxes issue resolved if you put a
CheckBox
in aDataGridTemplateColumn
?