simple usage of grid

Started by Peter2 · 2015-05-27 11:24 UTC · 3 replies · SMF topic #2275

It seems that I'm totally left out in the dark - I try to create an absolute simple "data grid" with two columns and two lines, type "text", like

Jim      John
Sue      Mary

But using "addString" or "AddRow" I get always an error . Maybe I missed some basis definitions / settings of the grid? maybe someone can take a look at the attached code-snippet?

Thanks
Attachments
Hi, Peter2, this will work in modeless forms, but not in modal forms. Put it in the OnInitialize-event handler of the form.
I recommend you to have a look at the {2} and at the {2}.
Hope that helps.
Fred
Hi, I've moved around your lines a little bit. Please have a look at the odcl and the events of the form.
Regards, Fred
Attachments
author=Fred Tomke link=topic=2275.msg11450#msg11450 date=1432754397 wrote:
...Please have a look at the odcl and the events of the form....

Oh - I see. I messed up the "OnInitialize" event in the Lisp and in the form. Thanks a lot!