コード例 #1
0
        private void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs e)
        {
            currentRow    = e.RowIndex;
            currentColumn = e.ColumnIndex;

            if (CellChanged == null)
            {
                return;
            }

            DataRow dr = metaDataDataTable.DefaultView[e.RowIndex].Row;

            CellChangedEventArgs e2 = new CellChangedEventArgs(
                dr["table_name"].ToString(),
                dr["column_name"].ToString(),
                -1, CurrentRow, CurrentColumn
                );

            CellChanged(sender, e2);
        }
コード例 #2
0
        private void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                currentRow    = e.RowIndex;
                currentColumn = e.ColumnIndex;

                UpdateStatus(e.RowIndex, e.ColumnIndex);

                if (CellChanged != null)
                {
                    CellChangedEventArgs e2 = new CellChangedEventArgs(
                        TableName, ColumnName, this.SelectedTableIndex,
                        this.SelectedRowIndex, this.SelectedColumnIndex);
                    CellChanged(sender, e2);
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
                throw;
            }
        }
コード例 #3
0
 private void dsvChild_CellChanged(object sender, CellChangedEventArgs e)
 {
 }
コード例 #4
0
 private void dsvParent_CellChanged(object sender, CellChangedEventArgs e)
 {
 }