Beispiel #1
0
        /// <summary>
        /// 編集前の情報を保持する
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dataGridView1_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
        {
            int column = e.ColumnIndex;
            int row    = e.RowIndex;

            if (column < 0 || row < 0)
            {
                return;
            }

            _oldProperty = new ScalarProperty()
            {
                Name       = _columns[row].Name,
                ColumnName = _columns[row].ColumnName
            };
        }
Beispiel #2
0
        /// <summary>
        /// 編集前の情報を保持する
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void dataGridView1_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e)
        {
            int column = e.ColumnIndex;
            int row = e.RowIndex;
            if (column < 0 || row < 0)
                return;

            _oldProperty = new ScalarProperty()
            {
                Name = _columns[row].Name,
                ColumnName = _columns[row].ColumnName
            };
        }