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.
We have a situation where a large covered cell spans several columns that are allowed to scroll. There are frozen columns to the left, but this "banner cell" does not include any of the frozen cols, it only spans the scrollable area.
The covered region is, in effect, a header whose text is intended to span those scrollable columns that are ~visible~.
Of course, it doesn't work that way, when the scrollable area moves, our header in the covered range scrolls out of sight.
I imagine we can use the DrawCellDisplayText to place our header text so that it is always visible, reagardlees of where the region is scrolled.
Do do that, I would need to know the X coordinate at the actual left edge left edge of the visible area when the covered cell has scrolled however - I'm not sure how to get that...
can anyone help?
btw: It turns out that we;re using HorizontalTextAlignment.Left, but there are enough scrollable columns that whatever alignment we use, text in the covered region will scroll out of sight.
ADAdministrator Syncfusion Team February 27, 2007 07:31 AM UTC
It may be easier to use QueryCoveredRange and PrepareViewStyleInfo to dynamcially provide the covered range and text that you want to see. To prevent the text from flashing as you scroll, you can can use LeftColChanging and LeftColChanged. Here is a sample.