private void NewRowManual(ref PInternationalPostalTypeRow ARow) { string newName = Catalog.GetString("NEWCODE"); Int32 countNewDetail = 0; if (FMainDS.PInternationalPostalType.Rows.Find(new object[] { newName }) != null) { while (FMainDS.PInternationalPostalType.Rows.Find(new object[] { newName + countNewDetail.ToString() }) != null) { countNewDetail++; } newName += countNewDetail.ToString(); } ARow.InternatPostalTypeCode = newName; }