>Hi,
>
>I have a special texbox, defined inside a class, and I want to do the following. This texbox will be always inside a grid.
>
>Changing the DynamicInputMask of his parent column, but in the init of the texbox.
>
>I tried to do:
>
>(In the Init of the textbox):
>
>This.parent.DynamicInputMask = this.InputMask
>
>No success... well with the Debugger I see that the column's DynamicInputMask is changed, but doing a step, I go into the grid's init that changes this back. Hum...
>
>Can anoybody know the solution?
>
>I want to this cause I don't want to change all the column's in all the forms I have, also this InputMask can change depending on certain values in my oapp object.
Pablo,
You cannot do that in the init of the textbox.
The object are initialized from innermost to outermost, so textbox, column, grid, form.
But you can do this in the grids init event with:
this.MyColumn.DynamicBackColor = ....