CB
Clay Burch
Syncfusion Team
August 20, 2002 08:50 PM UTC
The default image drawing requires either a "Static" or "TextBox" CellType. RowHeader drawing is in GridHeaderCellRenderer.OnDraw which does not handle image drawing.
So, one way you could get images in row headers is to change the celltype to Static. Here is a little code snippet that you could use in your QueryCellInfo to handle this.
Private Sub QueryCellInfo(ByVal sender As Object, ByVal e As GridQueryCellInfoEventArgs)
If e.ColIndex = 0 And e.RowIndex > 0 Then
e.Style.ImageList = Me.imageList
e.Style.CellType = "Static"
e.Style.CellAppearance = GridCellAppearance.Raised
e.Style.ImageIndex = 2
e.Handled = True
End If
End Sub