private void sp売上明細データ_CellEditEnding(object sender, SpreadCellEditEndingEventArgs e) { if (e.EditAction == SpreadEditAction.Cancel) { return; } CellName = e.CellPosition.ColumnName; CellText = sp売上明細データ.Cells[e.CellPosition.Row, e.CellPosition.Column].Text; Cell入出金金額 = AppCommon.DecimalParse(sp売上明細データ.Cells[e.CellPosition.Row, "入出金金額"].Text); //スプレッドコンボイベント関連付け解除 if (sp売上明細データ[e.CellPosition].InheritedCellType is GrapeCity.Windows.SpreadGrid.ComboBoxCellType) { GrapeCity.Windows.SpreadGrid.Editors.GcComboBox gccmb = sp売上明細データ.EditElement as GrapeCity.Windows.SpreadGrid.Editors.GcComboBox; if (gccmb != null) { gccmb.SelectionChanged -= comboEdit_SelectionChanged; } } if (sp売上明細データ[e.CellPosition].InheritedCellType is GrapeCity.Windows.SpreadGrid.CheckBoxCellType) { GrapeCity.Windows.SpreadGrid.Editors.CheckBoxEditElement gcchk = sp売上明細データ.EditElement as GrapeCity.Windows.SpreadGrid.Editors.CheckBoxEditElement; if (gcchk != null) { gcchk.Checked -= checkEdit_Checked; gcchk.Unchecked -= checkEdit_Unchecked; } } }
private void sp請求データ一覧_CellEditEnding(object sender, SpreadCellEditEndingEventArgs e) { if (e.EditAction == SpreadEditAction.Cancel) { return; } CellName = e.CellPosition.ColumnName; CellText = sp請求データ一覧.Cells[e.CellPosition.Row, e.CellPosition.Column].Text; }