private void NewRecord() { BusinessObject.GetEmptyDataSet(); BusinessObject.NewRow(); } form_load(object sender, EventArgs e) { this.NewRecord(); }3. when i press the save button (i used an ordinary button not the mmButton) i want to save the record, remember the controls are binded so i dont have to set the values in my code manually. so i just called the save method of the business form "this.Save(BusinessObject)" fortunately the 1st record was saved successfuly, but i want to clear the current dataset and create a new record again. so i called the method "NewRecord()" again, the dataset was cleared successfuly and a new row is created... but when i save the record again.... it does not save.
button_click(object sender, EventArgs e) { this.Save(oBusinessObject); if (this.oBusinessObject.State != OakLeaf.MM.Main.Business.mmBusinessState.BrokenRulesWarnings) { this.NewRecord(); } }