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
close icon

GetCombinedStyle on whole row/col/table

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

5 Replies

LK Leow Kah Man July 5, 2006 06:23 AM UTC

Some type correction: Call GetCombinedStyle when...


AD Administrator Syncfusion Team July 5, 2006 03:51 PM UTC

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


LK Leow Kah Man July 6, 2006 12:37 AM UTC

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


LK Leow Kah Man July 11, 2006 12:11 AM UTC

Hi, I was referring to "MergeStyle" not MergeCells


AD Administrator Syncfusion Team July 11, 2006 04:14 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon