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

Reg: Image property in grid control

Thread ID:





31349 Jul 6,2005 06:37 AM UTC Jul 6,2005 08:34 AM UTC WinForms 1
Tags: GridControl
Anna Srinivasan
Asked On July 6, 2005 06:37 AM UTC

Hi, I am adding (icon)image to grid control header. I have tried with following code, but it is not working. Help me.......! Example Code: [sfgDeltas = gridControl] System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(HistoryControl)); this.sfgDeltas.ColStyles[1].VerticalAlignment = GridVerticalAlignment.Bottom;; this.sfgDeltas.ColStyles[1].BackgroundImageMode = GridBackgroundImageMode.CenterImage; this.sfgDeltas.ColStyles[1].BackgroundImage = (System.Drawing.Image)(resources.GetObject(@"D:\image.ico"));

Administrator [Syncfusion]
Replied On July 6, 2005 08:34 AM UTC

ColStyles are column styles. They affect the interior cells in a column. They do not affect the column header cell itself. Try code like this: this.gridControl1[0,someColIndex].BackgroundImage = images.Images[0]; this.gridControl1[0,someColIndex].BackgroundImageMode = GridBackgroundImageMode.CenterImage;


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