It should if it's in the textbox (i.e.) control, unless I'm missing the point? I know that Oliver mentioned using the column...Just my personal suggestion to consider the actual textbox...
>>
this.value = myfun(myfield)
>
>I don't think this will work in a grid will it?