Free Support Forum - aspose.com

Aspose gridweb's default sorting how to disable it?

Hi Aspose,


How do I disable the default sorting provided by the aspose grid web If I don’t need it.

Thanks,
Mahesh

Hi,


I am not sure about your query/issue. If you do not use WebCells.Sort(), it will not sort data. When you need to sort in Asc or Desc order, you may use, e.g:
GridWeb1.WebWorksheets[0].Cells.Sort(1, 0, 20, 4, 0, SortOrder.Descending, SortOrientation.SortTopToBottom, true);

If you still have any confusion, let us know the details and a sample project to show the issue, we will check it soon.

Also, please use our latest version v2.7.11.2xxxx, you may get it installing the Aspose.Cells for .NET package v7.3.2 from the Downloads module of the Aspose site.

Thank you.