>I've inserted two textboxes to container object, and then put the container to the grid.
>When I move the cell to other cell, I want to check the two textboxes.
>If the condition is false, keep the cell in current position and then set the focus to the textbox. (I'm using container.lostfocus)
>How can I to handle it?
Oliver,
Don't use the container's LostFocus, instead use a combination of the grid's BeforeRowColChange and AfterRowColChange. If you search teh threads here you will find plenty of examples of how to detect a column change and react to it.