Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3455
Cell selection before begin edit
posted

Hi,

When the cell is clicked, it will be in edit mode and the text in the cell is selected. Can we change this when the cell is start to edit, if there is text in the cell the insertion point must be in the end of the string.

regards,

Ceaser

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi Ceaser,

    When you click on a cell, the cursor will appear at the point you clicked - it doesn't select all of the text. But anyway, if you want to control where the cursor goes, you can do this:


            private void ultraGrid1_AfterEnterEditMode(object sender, EventArgs e)
            {
                UltraGrid grid = (UltraGrid)sender;
                grid.ActiveCell.SelStart = grid.ActiveCell.Text.Length;
            }

Reply Children
No Data