[]
        
(Showing Draft Content)

C1.Win.C1FlexGrid.C1FlexGridBase.ChangeEdit

ChangeEdit Event

Fires in edit mode, after the contents of the editor change.

Namespace: C1.Win.C1FlexGrid
Assembly: C1.Win.C1FlexGrid.4.8.dll
Syntax
public event EventHandler ChangeEdit
Returns
Type Description
EventHandler Fires in edit mode, after the contents of the editor change.
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.

Examples

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...";
}