قراءة تحققات البيانات في ملف Excel باستخدام Aspose.Cells.GridDesktop

قراءة تحققات البيانات في ملف Excel باستخدام Aspose.Cells.GridDesktop

يقوم الشيفرة المثالية التالية بإستيراد ملف إكسل عيني الذي يحتوي على بعض تحققات البيانات داخل GridDesktop.

// 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 عند محاولة تغيير قيمة الخلية A2 إلى قيمة أكبر من 100 تظهر نافذة رسالة رسالة خطأ التحقق.