Hi Ralph,
This KnowledgeBase article
''How do I put a cell in overstrike mode so that the characters get replaced instead of being inserted as you type.'' may help you.
Here is a code that does a little of what you need.
private void gridControl1_CurrentCellKeyPress(object sender, KeyPressEventArgs e)
{
GridTextBoxCellRenderer cr = this.gridControl1.CurrentCell.Renderer as GridTextBoxCellRenderer;
if(e.KeyChar != Convert.ToChar(Keys.Back)
&& cr.TextBox.SelectionLength == 0)
{
cr.TextBox.SelectionLength = 1; //Programatically selecting One char.
if(cr.TextBox.SelectedText == ".")
cr.TextBox.SelectionStart += 1; //Skipping the dot
}
}
For the rest I think you need to do some sort of custom validation. Refer this
article.
Best regards,
Stanley