>Why below setall all statement placed at the form.init event does not work :
>
>THISFORM.pageFrame1.page1.grid1.SETALL("KEYPRESS", "THISFORM.nextLine(nKeyCode)", "TEXTBOX")
>
>
>TIA.
Because you can only use the SetAll method to change properties, not put code into other methods. You can't do that at runtime, you'll need to create a subclass of a textbox and substitute that for the standard textbox in the grid. You can either do this with a builder or you can do this with code in the grid Init method.