The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I have a logic in a GDBD where some columns are hid or shown based on user input values.
After a RefreshRange(ViewLayout.VisibleCellsRange) is applied in order to repaint the GDBD some header columns are out of sync.
Is there a way to refresh column headers?
Should I use RefreshRange with other parameter where column headers are repainted?
TIA
Jose
ADAdministrator Syncfusion Team October 3, 2003 02:39 PM UTC
When you hide columns you should do that with Model.HideCols. That should normally also repaint the screen.
If for some reason you need to manually refresh header cells, you could just do this by calling Refresh. This will repaint all cells that are visible.
VisibleCellsRange only includes non-header cells. That's why they don't get repainted.
Stefan