You have attempted to execute the Grid.AddObject method to add an object other than a column to the grid.
-
You are trying to add an object to a column, rather than adding a column to the grid.
To add an object to a column, use the Grid.Column syntax with the AddObject method.