Exemplo n.º 1
0
 private void AddColumn(object sender, EventArgs e)
 {
     DGVTable.Columns.Add(new DataGridViewColumn(DGVTable.Rows[0].Cells[0]));
     FillHeaders();
     foreach (DataGridViewRow row in DGVTable.Rows)
     {
         CellManager.AddCell(row.Cells[DGVTable.ColumnCount - 1]);
     }
 }
Exemplo n.º 2
0
 private void InitializeCells()
 {
     foreach (DataGridViewRow row in DGVTable.Rows)
     {
         foreach (DataGridViewCell cell in row.Cells)
         {
             cell.Value = "";
             cell.Tag   = "";
             CellManager.AddCell(cell);
         }
     }
 }
Exemplo n.º 3
0
        private void AddRow(object sender, EventArgs e)
        {
            DataGridViewRow addedRow = new DataGridViewRow();

            foreach (DataGridViewCell cell in addedRow.Cells)
            {
                cell.Value = "";
                cell.Tag   = "";
                CellManager.AddCell(cell);
            }
            DGVTable.Rows.Add(addedRow);
            FillHeaders();
        }