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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GroupingGrid header images

Thread ID:





22287 Dec 8,2004 09:04 PM UTC Dec 9,2004 12:20 AM UTC WinForms 1
Tags: Grouping
Bernard Herrok
Asked On December 8, 2004 09:04 PM UTC

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 9, 2004 12:20 AM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon