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

How to set an image on columns header of datagrid

Thread ID:





6592 Aug 19,2003 12:32 PM UTC Jan 20,2004 07:58 AM UTC WinForms 1
Tags: FAQ
Ron Bar yosef
Asked On August 19, 2003 12:32 PM UTC

Hello everyone , i'm trying to add and icon image on the column's header of a datagrid . does anybody know how to do it ? do i have to override onPaint how i get the column's header height ? thanks in advance

Syed Waseem Jaffer
Replied On January 20, 2004 07:58 AM UTC

Hi, plz try this make an imageilst with "Imagelist1" on design time and add some images to this list. then try the following code on form load gridcontrol1(0,1).imagelist = "Imagelist1" gridcontrol1(0,1).imageindex = 1 actually column header behave as the zeroth row of the grid so u can handle the height of the grid col header as ''''following line of code will set the col header ''''height equal to 25 gridcontrol1.rowheight(0) = 25 > > Hello everyone , > >i''m trying to add and icon image on the column''s header of a datagrid . > >does anybody know how to do it ? >do i have to override onPaint > >how i get the column''s header height ? > >thanks in advance > >


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