question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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>

imagen

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
miloushcommented, Feb 15, 2022

I would keep the issue open, disabling virtualization is only a workaround that is not always acceptable.

0reactions
miloushcommented, May 25, 2022

@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 a DataGridTemplateColumn?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found