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);
        }
        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;
            }
        }
Esempio n. 3
0
 private void dsvChild_CellChanged(object sender, CellChangedEventArgs e)
 {
 }
Esempio n. 4
0
 private void dsvParent_CellChanged(object sender, CellChangedEventArgs e)
 {
 }