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.

Reg: Image property in grid control

Thread ID:

Created:

Updated:

Platform:

Replies:

31349 Jul 6,2005 02:37 AM Jul 6,2005 04:34 AM Windows Forms 1
loading
Tags: GridControl
Anna Srinivasan
Asked On July 6, 2005 02:37 AM

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 04:34 AM

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;

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.

;