C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : ChangeEdit Event |
'Declaration
<C1DescriptionAttribute("Fires in edit mode, after the contents of the editor change.")> Public Event ChangeEdit As EventHandler
'Usage
Dim instance As C1FlexGridBase Dim handler As EventHandler AddHandler instance.ChangeEdit, handler
[C1Description("Fires in edit mode, after the contents of the editor change.")] public event EventHandler ChangeEdit
[C1Description("Fires in edit mode, after the contents of the editor change.")] public: event EventHandler^ ChangeEdit
This event fires while the grid is in edit mode and the contents of the editor change. This may be caused by the user typing into the editor or selecting a new item in a drop down list.
When this event fires, the new editor content has not been applied to the grid cell yet. You may check the new content using the Editor property.
void _flex_ChangeEdit(object sender, EventArgs e) { // get text in editor string text = _flex.Editor.Text; // show message if it's too long statusStrip1.Text = text.Length > 10 ? "This text seems too long..." : "This text looks OK..."; }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2