public static void moveUp_DataRecord(String sCategory, int iID) { CRecords myRecs = new CRecords(); String dataFileName = System.Configuration.ConfigurationManager.AppSettings["LegoWebFilesPhysicalPath"].ToString() + "File/Data/" + System.Threading.Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName + "\\" + sCategory + ".xml"; if (File.Exists(dataFileName)) { myRecs.load_File(dataFileName); } else { myRecs.Save(dataFileName); } myRecs.Filter("001", iID.ToString(), true); if (myRecs.Count > 0) { CRecord moveRec = myRecs.Record(0); moveRec.MoveDown();//reverse } myRecs.Save(dataFileName); }