>>>hi all
>>>i've several readonly=.t. columns on my grid and i want to auto skip from readonly=.t. column to the next column while navigation or entering data how can i do this?
>>>TIA
>>
>>Assuming your columns are not movable, put appropriate code in the last non-readonly column's textbox KeyPress intercepting TAB
>hi Naomi
>columns are movable :( and should movable cause column orders are user preferred
If that's the case, the code becomes a bit more tricky (you will need to get a reference to next column and check if it's read only or not, etc.) but doable.
Or, I just thought of one idea - you can bindevent Keypress to form's method. Each textbox will determine if it's readonly or not and if it is, it will just do NODEFAULT and TAB, so it will be passed to the next column.
If it's not broken, fix it until it is.
My Blog