Completed
Last Updated: 13 Mar 2013 05:02 by ADMIN
ADMIN
Stefan
Created on: 13 Mar 2013 05:02
Category: PropertyGrid
Type: Bug Report
0
FIX. RadPropertyGrid - one is not able to enter multi line text in PropertyGridTextBoxEditor
Pressing Ctrl + Enter should create a new row in the editor instead of closing it.

WORKAROUND:
Replace the default editor with the following one in the EditorRequired event:

 class MyPropertyGridTextBoxEditor : PropertyGridTextBoxEditor
    {
        protected override void OnKeyDown(System.Windows.Forms.KeyEventArgs e)
        {
            if (e.Modifiers == System.Windows.Forms.Keys.Control && e.KeyCode == System.Windows.Forms.Keys.Enter)
            {
                return;
            }

            base.OnKeyDown(e);
        }
    }
0 comments