>Hi Edward,
>
>
>>Ok, I've read you message.
>>'Editbox' is normal solution, and you may still show button in grid with code populating editbox. If you want to add this code in run-time and you create columns dynamically, then you should AddObject button (or any other column.control) from your own class.
>
> In this case Create my own class txtMemo based on textbox with code in dblclick method modify memo, right? And if I don't want to allow a user change content of the memo, what do I need to do?
>
>I'm still unsure why do you need in additional user's action (click or dblclick) to get 'memo window'. You may do it automatically, e.g. from Grid.AfterRowColChange event,
>
> What do I need to do here? Could you please give me a code example?
You may add Editbox to your form and have:
Thisform.Myeditbox.value=mytable.mymemofield
in grid.afterrowcolchange event. Surely, you may provide user with a tool (button) to make editbox visible/invisible.
Again,, I would recommend you to put memo content to grid.column.textbox, so user will always see, let say, 20 first chars, and get others by toggling Editbox.Visible property.
Edward Pikman
Independent Consultant