FlexGrid for WinForms
ChangeEdit Event
Example 



Fires in edit mode, after the contents of the editor change.
Syntax
'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
Remarks

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.

Example
The code below shows a message when the text being edited contains more than 10 characters:
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...";
}
Requirements

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

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback