Aspose.Cells.GridDesktop ile Excel dosyasındaki Veri Doğrulamalarının Okunması

Aspose.Cells.GridDesktop ile Excel dosyasındaki Veri Doğrulamalarının Okunması

Aşağıdaki örnek kod, GridDesktop içindeki bazı Veri Doğrulamaları içeren örnek excel dosyasını içe aktarır.

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// The path to the documents directory.
string dataDir = Utils.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// Import sample excel file in GridDesktop
gridDesktop1.ImportExcelFile(dataDir + "ValidationTesting.xlsx");

GridDesktop’a dosyayı içe aktardıktan sonra, A2 hücresinin değerini 100’den büyük bir değerle değiştirmeye çalıştığımızda Doğrulama Hatası ileti kutusunun açıldığını görebilirsiniz.