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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trouble with image scaling in grid column header

Thread ID:





18820 Sep 9,2004 05:44 PM UTC Sep 9,2004 06:06 PM UTC WinForms 1
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";


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

Live Chat Icon For mobile
Live Chat Icon