We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

GroupingGrid header images

Thread ID:

Created:

Updated:

Platform:

Replies:

22287 Dec 8,2004 04:04 PM Dec 8,2004 07:20 PM Windows Forms 1
loading
Tags: Grouping
Bernard Herrok
Asked On December 8, 2004 04:04 PM

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?

Bernard Herrok
Replied On December 8, 2004 07:20 PM

sorry, i was wrong. it does work. the imagelist was empty. thanks,

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;