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
430
editing in an ultragrid
posted

I have a grid where only a single column can be edited.  Regardless of how cells in this column are entered (mouse, tab key, up arrow, down arrow), I want the text in the cell highlighted upon entry.  Accessing the cell via the tab key does this but mouse, up arrow, down arrow do not.  What is the best/easiest way to do this?  Thanks.

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted


            private void ultraGrid1_AfterEnterEditMode(object sender, EventArgs e)
            {
                UltraGrid grid = (UltraGrid)sender;
                EmbeddableEditorBase editor = grid.ActiveCell.EditorResolved;
                if (editor.SupportsSelectableText)
                    editor.SelectAll();
            }

Children