Library Vcl NextSuite 6 NextGrid6 Reference Classes TNxColumns6 Exist

Exist

Determine whether a column with the specified index exists within columns array.

function Exist(const Index: Integer): Boolean;

Example

if ProductsGrid.Colums.Exist(ColIndex) then
begin
  ProductsGrid.Columns.Delete(ColIndex);
end;

Sign in