The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
After setting format (e.g. 999) for a column, whenever a new row is added and the cell on the formatted column is activated, the cursor is always at the end of the cell ie. cursor is palced after third blank space within the cell.
Please, how can I reposition the cursor to the begining of text within the cell?
STstanleyj 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