I have a cell that handles numeric data and I have a MaskedInput property assigned to it. When I click on that cell, the input mask appears and its all ready to edit. How can I "enter" the cell like that programatically? I have an "Add" button, and when the user clicks it I add a new row to the grid and I'd like that cell to be all ready for editing, with the mask showing like that. The Cell.Activate() method does not do this.
Just like a TextBox, a cell has SelectionStart and SelectionLength properties.
Ok, next question...
When i do this and I get the cell in edit mode, for some reason it looks like all the text of the cell is selected (even if the cell is blank at this point). When I click on one of these cells with my mouse, it looks different. The input mask is visible, but no text is selected. How can I programmatically attain this?
Activate just makes it the ActiveCell. To enter edit mode on the cell, use the PerformAction method of the grid and specific EnterEditMode.