Is a selected cell merged?

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

    Posted 24 Feb Link to this post

    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

  2. Tanya
    Admin
    Tanya avatar
    405 posts

    Posted 26 Feb 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.

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top