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.

GetCombinedStyle on whole row/col/table

Thread ID:

Created:

Updated:

Platform:

Replies:

46059 Jul 5,2006 02:15 AM Jul 11,2006 12:14 PM Windows Forms 5
loading
Tags: GridControl
Leow Kah Man
Asked On July 5, 2006 02:15 AM

Hi, WCall GetCombinedStyleon when selected range is, let''s say C2, what will Syncfusion do? loop through each cell and perform a MergeStyle?

Leow Kah Man
Replied On July 5, 2006 02:23 AM

Some type correction: Call GetCombinedStyle when...

Administrator [Syncfusion]
Replied On July 5, 2006 11:51 AM

Hi Leow, The GetCombinedStyle method is used to analyze specified cells for attributes that are equal among the cells. It doesn''t not merge the specified cells. If you want to merge the specified cells, you can use the CoveredRanges.Add method to merge specified cells in a grid. Please refer our shipped browser sample ''''CoveredCells'''' ( \\windows\Grid.Windows\Samples\Quick Start\CoveredCells ) which demonstrates a way to merge the specified cells in the grid. let us know if this helps. Best Regards, Haneef

Leow Kah Man
Replied On July 5, 2006 08:37 PM

Sorry, I was referring to IStyleInfo.MergeStyle which is different from merging of cells

Leow Kah Man
Replied On July 10, 2006 08:11 PM

Hi, I was referring to "MergeStyle" not MergeCells

Administrator [Syncfusion]
Replied On July 11, 2006 12:14 PM

Hi Leow, The GetCombinedStyle method is used to analyze specified cells for attributes that are equal among the cells. But It doesn''''t not resets all properties that differ among the two style objects. If you want to reset all properties that differ among the two style objects and keeps only those properties are equal , you need to call the MergeStyle method. Please refer the attached sample for more details and let us know if this helps. e.Style.MergeStyle( headeStyle ); //QueryCellInfo event Here is a sample. http://www.syncfusion.com/Support/user/uploads/MergeStyle_cf733d23.zip Best Regards, Haneef

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.

;