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.
Can I put an image next to the text in the header?
i''ve tried:
Private Sub MarketingDG_TableControlDrawCell(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlDrawCellEventArgs) Handles MarketingDG.TableControlDrawCell
Dim endRowIndex As Integer
e.Inner.Style.ImageList = HeaderImageList
If e.Inner.ColIndex = headerRow Then
Dim rect As New Rectangle(e.Inner.Bounds.Left, e.Inner.Bounds.Top + 6, 16, 16)
If MarketingDG.TableControl.GetRowHidden(endRowIndex) = False Then
e.Inner.Graphics.DrawImage(HeaderImageList.Images(1), rect)
Else
e.Inner.Graphics.DrawImage(HeaderImageList.Images(0), rect)
End If
e.Inner.Style.Enabled = False
End If
End Sub
AND
If e.Inner.RowIndex = headerRow AndAlso columnName = "Total" Then
e.Inner.Style.CellType = "Static"
If MarketingDG.TableControl.GetColHidden((e.Inner.ColIndex + tableModelControlColumnOffSet) + 1) = False Then
e.Inner.Style.ImageIndex = 1
Else
e.Inner.Style.ImageIndex = 0
End If
e.Inner.Style.ImageList = HeaderImageList
e.Inner.Style.VerticalAlignment = GridVerticalAlignment.Top
Dim colName As String = GetColumnName(e.Inner.ColIndex + tableModelControlColumnOffSet)
e.Inner.Style.Text = colName
e.Inner.Style.CellAppearance = GridCellAppearance.Raised
End If
but nothing...
any ideas?