private void NewRow(System.Object sender, EventArgs e) { // This code derived from the auto-generated CreateNewACostCentreTypes(), because that doesn't cope with LedgerNumber. if (ValidateAllData(true, true)) { ACostCentreTypesRow NewRow = FMainDS.ACostCentreTypes.NewRowTyped(); NewRow.LedgerNumber = FLedgerNumber; NewRow.CostCentreType = UniqueNewKey(); NewRow.CcDescription = "PLEASE ENTER DESCRIPTION"; FMainDS.ACostCentreTypes.Rows.Add(NewRow); FPetraUtilsObject.SetChangedFlag(); grdDetails.DataSource = null; grdDetails.DataSource = new DevAge.ComponentModel.BoundDataView(FMainDS.ACostCentreTypes.DefaultView); SelectDetailRowByDataTableIndex(FMainDS.ACostCentreTypes.Rows.Count - 1); ValidateAllData(true, false); txtDetailCostCentreType.Focus(); } }
private void ShowDetailsManual(ACostCentreTypesRow ARow) { }