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.

GridFontInfo underline

Thread ID:

Created:

Updated:

Platform:

Replies:

36481 Oct 31,2005 08:00 PM Oct 31,2005 09:17 PM Windows Forms 1
loading
Tags: GridControl
Terence Rossow
Asked On October 31, 2005 08:00 PM

G''day, I am exporting to excel using ExcelRW, and the code I have copies the Grid''s table style to the excel workbook''s table style before looping through all of the rows/cols. When copying that first style, we check the GridStyleInfo.Font.HasUnderline property - if it is true, we set the the underline property of the excel sheet to Single. However, I just noticed that the HasUnderline property is true - however the Underline property is false. Since we check HasUnderline, and then set an enum value in the excel sheet, the Underline property is ignored. Is this a bug? Has something been set wrong? Why do we have a HasUnderline for a boolean property anyway? I have attached an image showing the QuickWhatch of the style in Visual Studio. Cheers.

GridStyleInfo.Font discrepencies.zip

Administrator [Syncfusion]
Replied On October 31, 2005 09:17 PM

HasUnderline being set to true just means that style.Font.UnderLine has been explicitly set to something, either true or false. It does not mean that style.Font.UnderLine has to be true true. You will have to check style.Font.UnderLine directly to test if it is set to true.

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.

;