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.
Syncfusion Feedback

Trouble with image scaling in grid column header

Thread ID:

Created:

Updated:

Platform:

Replies:

18820 Sep 9,2004 05:44 PM UTC Sep 9,2004 06:06 PM UTC WinForms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On September 9, 2004 05:44 PM UTC

When setting an image on a column header (for instance to show sort direction), the image is being scaled larger than it is. Currently using an image list and setting an image index. How do you tell the grid to display the image in the header cell as its actual dimensions?

Administrator [Syncfusion]
Replied On September 9, 2004 06:06 PM UTC

Try explicitly setting the ImageList.ImageSize. ImageList il = new ImageList(); il.Images.Add(SystemIcons.Hand.ToBitmap()); il.ImageSize = new Size(10,10); this.gridControl1[0,2].ImageIndex = 0; this.gridControl1[0,2].ImageList = il; this.gridControl1[0,2].CellType = "Static";

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.

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

;