Sorting does not handle comments

Hello,


It seems that sorting Excel data with sorting feature in XlsIo does not take comments with the sorted cells. Comments leave into the original location even the main cell data is moved correctly. Very strange.


Anyone else noticed the same?


Comments added like this:

 var comment = cell.AddComment();

comment.Text = downloadCountResult.Comment;


Sorting done like this:

IDataSort sorter = workbook.CreateDataSorter();

sorter.SortRange = sheet.UsedRange;

ISortField sortField = sorter.SortFields.Add(1, SortOn.Values, OrderBy.Descending);

sorter.Sort();


4 Replies

KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team December 13, 2021 11:34 AM UTC

Hi Juha, 

Greetings from Syncfusion. 

We are able to reproduce the reported issue at our end and validating it currently. We will share the validation details on December 15th,2021. 

Regards, 
Keerthi. 



KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team December 15, 2021 11:24 AM UTC

Hi Juha, 

We appreciate your patience. 

As of now we do not have support for sorting the comments along with cells and logged feature report. But we do not have any immediate plans to implement this feature in near future. You can track the status of feature report through following feedback link. 


Regards, 
Keerthi. 



PI Pistoolirapu December 15, 2021 11:41 AM UTC

Hello,


Thank you for the answer. For me, the sorting feature is therefore limb when using comments. Hope this crucial feature is made sooner or later. 


Workaround is naturally sort the data already in C# code and wrote it in place already sorted and after that add needed comments. Or alternatively made sorting via Excel desktop software.


Thanks.



KK Konduru Keerthi Konduru Ravichandra Raju Syncfusion Team December 16, 2021 02:30 PM UTC

Hi Juha, 
 
We will consider the feature in future. We suggest Workaround is naturally sort the data already in C# code and wrote it in place already sorted and after that add needed comments. Workaround.  
 
Regards, 
Keerthi. 


Loader.
Up arrow icon