>Dragan,
>
>That doesn't work as the "LEFT" property is Read-Only for a
>TextBox control contained within a column !
>
>Michel.
Whew ;(. Next try:
with thisgrid
for i=1 to .columncount
.columns[i].text1.controlsource="([ ]+"+.columns[i].text1.controlsource+")"
endfor
endwith
... privided you have only character fields, else we'd need some spaces preceding the InputMask property instead. What I tried to accomplish here is to add a couple of spaces before each textbox. And... this will probably turn your grid to be read-only. Hey, what about setting just the inputmask instead:
with thisgrid
for i=1 to .columncount
.columns[i].text1.inputmask=" "+repl("x", len(eval(.columns[i].text1.controlsource)))
.columns[i].text1.function="R"
endfor
endwith
This would sure need some adjustment for numericals, logicals and maybe some other data, but... could work, and be not just read-only this time.