I have an empty stringgrid (no columns, no rows).
I'd like to insert a row with two columns.
I hit on InsertRowWithValues which looks like an easy way to insert data without having to add rows yourself...
When I try this:
MappingGrid.InsertRowWithValues(0,['test1','dest1']);
I get a list index (-1) out of bounds error.
So... perhaps the code does not insert columns? Adding
MappingGrid.ColCount:=2;
does fix the problem.
Would it make sense to submit a feature request for InsertRowWithValues to either
1. add the required columns itself or
2. provide a more meaningful error message (x column values given while the grid only has y columns)?