I am using a GridControl which I load from memory. When I first create and manage the grid I try to set the default selection to a row in the grid and move the current cell to that row.
I am doing something like:
(this is something of an oversimplification, but that's the gist).
Anyway, the MoveTo does not seem to be doing anything and the next time I go to use the CurrentCell.RowIndex or CurrentCell.ColumnIndex they still have values of -1.
The return result of the MoveTo call is false; the ErrorMessage property of the CurrentCell is empty. I tried adding a try/catch block and I tried adding a MoveFailed event handler but neither caught anything.
I suspect that I am simply doing something wrong but I am having trouble figuring out what. Could you perhaps give me some hints on when MoveTo will not work? Are there settings for the grid control with which it is not compatible? Will it only work after a certain point in the initialization of the grid (similar to controls that need things done on load instead of in the constructor)?
Any ideas you can throw my way would be greatly appreciated.