You can create a class based on grid, and add any methods you like to that. Then, AddObject that grid to your form.
Alternately, you can add columns to the grid, or TextBoxes to your columns, based on classes. I mention this, because much of the user's interaction with the grid actually happens through the contained objects.
>Hi,
>I have a form, and on that form I programmatically add a grid.
>
>ThisForm.AddObject("Grid1","Grid")
>
>How can I then detect if there is a mouse click on the grid? Is it part of a procedure
>statement? But where does it go? In a procedure file??
>
>Procedure thisForm.Grid1.Click()
>endProc
>
>Thanks
>Steve
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)