Hi, Col 3 and 4 in my grid are TEdits Accessing them from other parts of my code is not a problem. However when i fill my grid, I cant access them yet apparently?
tmsGridCalc.RowCount := lFilteredList.Count + 1;
for I := 0 to lFilteredList.Count -1 do
begin
lAmountCell.Col := 3;
lAmountCell.Row := i+1;
lNom := TBusinessObject(lFilteredList.Objects);
tmsGridCalc.Cells[0,i+1] := lNom.Number;
tmsGridCalc.Cells[1,i+1] := lNom.GetText;
(tmsGridCalc.GetCellObject(lAmountCell) as TEdit).Text := '0';
end;
The highlighted text gives an access violation. I guess I'm doing something wrong.