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.
Hi,
What is the way to override painting for the headers, including my own drawings of the background and the interior?
Here are my codes:
protected override void OnDrawCell(GridDrawCellEventArgs e)
{
if (e.RowIndex == 0)
{
MyDrawBackgroundMethod(...);
MyDrawInteriorMethod(...);
}
else
{
base.OnDrawCell(e);
}
}
This is ok for RowIndex > 0 but not for the header cells. I have already set this.BaseStyleMap["Header"].StyleInfo.CellType = "Static".
What else should I do to take over the header painting?
Thanks for helping again.
Aaron