You're only showing what you do with 1 element. Is there a for or while structure we can take a look at? Iterating 2D table is really easy
Code:
var i, j: integer;
...
for j:=0 to RowCount-1 do
  for i:=0 to ColCount-1 do
  begin
    // Do something with element[i, j] ...

  end;