The code you pasted is not actually doing anything. Will you please paste your equivalent code in Aspose.Cells. We will investigate this feature and implement in Aspose.Cells for GridDesktop, if it is not available.
Well, I am afraid, Aspose.Cells.GridDesktop control does not support to import/export Conditional Formatting at the moment. The feature is only available in Aspose.Cells component. We have logged a ticket for the feature request with an id: CELLSNET-29869. We will look into it later on.
Also:
Aspose.Cells.GridDesktop.Worksheet sh = sheet;
Since Aspose.Cells and Aspose.Cells.GridDesktop are different components (one is control and other is library) and have different and their own architectures and attributes, so the conversion is not possible.
We will start working on to support conditional formattings for GridDesktop control in this week, it might take 2 weeks time or more time to complete the feature. Once it is done, we will notify you here.
Looking forward to this! Also require it. I hope your implementation will be efficient, we have thousands of lines that need to have conditional formatting applied to ± 30 000 rows. Excel does it poorly - completely hangs for several minutes. Spreadsheetgear does it very well! but lacks many of your features. So we would like to change to Aspose & Aspose.GridDesktop.
Please try our latest fixed version of Aspose.Cells.GridDesktop v2.6.4.2002, we have supported Conditional formatting (currently only
supported in the style of Excel 2003) in GridDesktop. The Excel 2007 advanced conditional formatting styles would supported later on.