I would like to avoid accessing cells by using column names. For example:
Ideally, I want to access it as follows:
row.Cells[columnXyz] (i.e. using the column reference).
Advantages of the later technique include: – If column name is changed, the code will break at compilation time rather than at runtime. – It may be faster.
To implement this, I think CellList will need to have a third overload which uses the column reference as an indexer. So it will be possible to access a cell using column index, column name, or column reference.
Does this make sense? Will it be considered in future versions?
Imported from legacy forums. Posted by vboctor (had 1848 views)