Allessio
Just off the top of my head, wouldn't it still be in the valid event of the control in the column? Now whether you'd have to return -1 to jump to the previous column, or more than this to jump up and down thrue the hierarchy I don't know.
Alternatively, can't you just issue SetFocus onto the required column when the condition is met?
Help?
Terry
>I got into problems in managing grids. Actually I need to control the tab order within a row of the grid.In other words, I am on a column x and i want to jump to column x-1 if a certain condition does not occurs.
>Where should I place code ? I tried with the lostfocus event of the control but it does not work .
>
>Another thing :-) I build a txtbox class wich test f th user made change.
>I put a property called oldvalue.
>In the when event i set this property = to the actual control value.
>in the lostfocus event i test if the control value is equal to the oldvalue,
>if so i call a method (changevalue() ) is it right ? It happen that sometimes it does not test the value properly, it does not set properly the oldvalue when I enter the control. But it happens sometimes, the first time I enter the control, if I enter the control again and made a change it works fine.
>thank you all
>Alessio
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.