Is a selected cell merged?

2 posts, 0 answers
  1. xclirion
    xclirion avatar
    23 posts
    Member since:
    May 2010

    Posted 24 Feb 2016 Link to this post


    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.




  2. Tanya
    Tanya avatar
    901 posts

    Posted 26 Feb 2016 Link to this post

    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.

    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
Back to Top