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.

Sort direction icon in Header is not drawn

Thread ID:

Created:

Updated:

Platform:

Replies:

6811 Aug 28,2003 12:28 PM Aug 28,2003 02:32 PM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On August 28, 2003 12:28 PM

Hi, In a databound grid (1.6.1.5), 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 12:53 PM

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 02:32 PM

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

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.

;