exception on "Columns.Items[xx] = NIL"

Hi

Using AdvColumnGrid, it is possible to known if a column exists with :

IF my_Grid.ColumnByName['My_Name1'] = NIL THEN
begin
    my_Grid.AddColumn;
    ...
end;



but using the column number itself, the same kind is not possible (of course the column 50 doesn't exist):

 IF my_Grid.Columns.Items[50] = NIL THEN
begin
    my_Grid.AddColumn;
    ...
end;


and create an exception :(

Possible to add this possibility ?

regards
olivier

Please check grid.Columns.Count to check if the index you look for is smaller than Count.

I did, but the solution

seems to me more beautiful :)