This is a migrated thread and some comments may be shown as answers.

Is a selected cell merged?

1 Answer 46 Views
Spreadsheet
This is a migrated thread and some comments may be shown as answers.
xclirion
Top achievements
Rank 1
xclirion asked on 24 Feb 2016, 11:16 AM

Hi,

I need to find out if a selected range is a merged cell. For a merged Cell the Property IsSingleCell is false.

In my application scenario I need to know whether the FromIndex-cell is part of a merged cell. If it is part of a merged cell, then I need to know which cells belong to that range since I need to handle them if it was a single cell. If it's not merged than I have to handle it as a range.

 

There's some documentation about how to do it with RadSpreadProcessing, but unfortunately not in the RadSpreadSheet. Though there's stated that merging is supported.

 

Thanks,

Michael

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 26 Feb 2016, 05:28 PM
Hi Michael,

You could use the GetIsMerged() method of Worksheet as demonstrated below:
myWorksheet.Cells.GetIsMerged(new CellIndex(0,0));

Regarding the documentation articles, RadSpreadsheet uses the model of RadSpreadProcessing and you could use the information from both sections of our documentation.

Hope this helps.

Regards,
Tanya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Spreadsheet
Asked by
xclirion
Top achievements
Rank 1
Answers by
Tanya
Telerik team
Share this question
or