Hello,
I have a Grid with 6 Columns (Column1.. Column6) and I want delete Column2 and Column4, depend of cell content of this Columns, but it deleted erverytime the last 2 columns.
NextGrid.Columns.Delete(const Index: Integer); --> Index is not index/position of Column ?
What I make wrong?
source:
for c := AColumn2 downto AColumn1 do
begin
b := false;
for r := 0 to NextGrid.RowCount - 1 do
begin
if (ANextGrid.Cell[c,r].AsFloat = AValue) then begin b := true; Break; end;
end;
if b then NextGrid.Columns.Delete©;
end;