0 Members and 1 Guest are viewing this topic.
// LOCK EVERY CELL tbl.SetCellState(0, 0, CellStates.ContentReadOnly); for (int r = 1; r < tbl.NumRows; r++) { for (int c = 0; c < tbl.NumColumns; c++) { tbl.SetCellState(r, c, CellStates.ContentReadOnly); } }
Try something like:Code: [Select] // LOCK EVERY CELL tbl.SetCellState(0, 0, CellStates.ContentReadOnly); for (int r = 1; r < tbl.NumRows; r++) { for (int c = 0; c < tbl.NumColumns; c++) { tbl.SetCellState(r, c, CellStates.ContentReadOnly); } }