ST
stanleyj
Syncfusion Team
February 28, 2006 03:53 AM UTC
Hi Kingsley,
If you are working on MaskEdit cell type and need the editing cursor at the start when clicking that cell, then try this to position the blinking cursor.
GridCurrentCell cc;
private void gridDataBoundGrid1_CurrentCellStartEditing(object sender, System.ComponentModel.CancelEventArgs e)
{
cc = this.gridDataBoundGrid1.CurrentCell;
if(this.gridDataBoundGrid1.Model[cc.RowIndex, cc.ColIndex].CellType == "MaskEdit")
{
SendKeys.Send("{HOME}");
SendKeys.Send("{RIGHT}");//if needed
}
}
Let me know if your requirement is different.
Best regards,
Stanley