Esempio n. 1
0
        private void treeView_AfterSelect(object sender, TreeViewEventArgs e)
        {
            dataGridView.CellValueChanged -= dataGridView_CellValueChanged;
            TngEntry entry = (TngEntry)e.Node.Tag;

            dataGridView.Rows.Clear();
            entry.CreateDgvTable(dataGridView);
            dataGridView.CellValueChanged += dataGridView_CellValueChanged;
        }
Esempio n. 2
0
        private void dataGridView_CellValueChanged(object sender, DataGridViewCellEventArgs e)
        {
            TngEntry entry = (TngEntry)treeView.SelectedNode.Tag;

            entry.Data[(string)dataGridView.Rows[e.RowIndex].HeaderCell.Value] = dataGridView.Rows[e.RowIndex].Cells[0].Value;
        }