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.

GridConditionalFormatDescriptor and row header

Thread ID:

Created:

Updated:

Platform:

Replies:

33202 Aug 16,2005 02:05 AM Aug 16,2005 03:55 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On August 16, 2005 02:05 AM

I have got a gridgroupingcontrol and want to set the whole row for a special row header condition. Now I thought I could solve this by using the GridConditionalFormatDescriptor - something like this: // Set conditional style for rows GridConditionalFormatDescriptor fd = new GridConditionalFormatDescriptor("MyCheck"); fd.Expression = "[Status] LIKE ''Finished''"; GridFontInfo actFont = fd.Appearance.AnyCell.Font; fd.Appearance.AnyCell.Font.Bold = true; But now I am wondering what should be entered in the expression property to match the row header. For a simple column like ''Status'' there is no problem - but how can i access the rowheader? Kind regards Franz

Administrator [Syncfusion]
Replied On August 16, 2005 03:55 AM

How are you putting the Text into the row header cell? By default, the grouping grid does not put text in the row header. Are you using QueryCellStyleInfo to do this? If so, you can use QueryCellStyleInfo to conditionally set the style of all the cells in the row as well. You would check if e.TableCellIdentity.DisplayElement is your row with the special header, and if so the set e.Style.Font.Bold =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.

;