Getting cell info after losing focus

Hey, I'm using v5

In the test app, if you enter some text in the cell and then click in the text box to lose focus, I would expect that the text box would then show the text typed in the grid. However when you access the grid[1,1].Text at this point, it's still empty.

If you click back on the grid and then on the text box again it will then populate the value properly.

Can you tell me what's going on here? Maybe I need to somehow update the grid to get the modified value?

Thanks,
Dan

GridTest6.zip

1 Reply

DD Dan Dorey May 30, 2007 04:02 PM UTC

never mind. I tried using the CurrentCellEditingComplete event and that appears to do what I need in a better way.

Thanks,
Dan

>Hey, I'm using v5

In the test app, if you enter some text in the cell and then click in the text box to lose focus, I would expect that the text box would then show the text typed in the grid. However when you access the grid[1,1].Text at this point, it's still empty.

If you click back on the grid and then on the text box again it will then populate the value properly.

Can you tell me what's going on here? Maybe I need to somehow update the grid to get the modified value?

Thanks,
Dan

GridTest6.zip

Loader.
Up arrow icon