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

Sort direction icon in Header is not drawn

Thread ID:





6811 Aug 28,2003 04:28 PM UTC Aug 28,2003 06:32 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On August 28, 2003 04:28 PM UTC

Hi, In a databound grid (, if I add the following code, the sort direction icon is not drawn. GridStyleInfo header = Grid.Model.BaseStylesMap["Header"].StyleInfo; header.Interior = new BrushInfo(GradientStyle.Vertical, Color.Blue, Color.White); I want to have my own background colors and fonts in the header. Somehow the header icon is not drawn when the above code is present. It works fine if I comment out the above code. Please let me know what is going on. thanks, - Reddy

Administrator [Syncfusion]
Replied On August 28, 2003 04:53 PM UTC

Reddy, I added the code you list to the bottom of the FormatGrid1() in the combobox sample you posted in the other forum thread. In that sample, the sort headers show ok for me. Are you changing any other basestyles?

Administrator [Syncfusion]
Replied On August 28, 2003 06:32 PM UTC

Clay, It seems to be working in the sample I sent you. But it did not working in my actual application. I looked throughout my code for this. No where else I am modifying "Header" or basestyles. The other thing is headers are coming up as bold. I have a derived DataboundGrid. In the constructor I am calling a method which was setting the header colors. After I commented out the method call in the constructor, it is wokring ok. I looked in the designer generated code of my form which has my derived DBG. There are no styles or anything unusual generated. Anyway, now it seems to be working. But it still puzzles me what is going on. thanks, - Reddy


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