ActiveReports Developer 7
EditModeExit Event
See Also  Example
GrapeCity.ActiveReports.Design.Win.v7 Assembly > GrapeCity.ActiveReports.Design Namespace > Designer Class : EditModeExit Event

Glossary Item Box

This event occurs when an end user leaves edit mode in a TextBox, Label, CheckBox or RichTextBox control in the End User Designer.

Syntax

Visual Basic (Declaration) 
Public Event EditModeExit As EditModeExitEventHandler
C# 
public event EditModeExitEventHandler EditModeExit

Event Data

The event handler receives an argument of type EditModeExitEventArgs containing data related to this event. The following EditModeExitEventArgs properties provide information specific to this event.

PropertyDescription
Control Gets the type of control that is exiting edit mode.
Type Gets the exit type.

Example

C#Copy Code
private void arDesigner_EditModeExit(object sender, EditModeExitEventArgs e)
        {
            string a=((GrapeCity.ActiveReports.SectionReportModel.ARControl)e.Control).Name;
            if (e.Type == ExitType.Save && a == "txtDocumentOwner")
            {
                // save the new value of textbox control in the temporary field
                _global_do = (e.Control as TextBox).Text;
            }
        }
Visual BasicCopy Code
Private Sub arDesigner_EditModeExit(ByVal sender As System.Object, ByVal e As GrapeCity.ActiveReports.Design.EditModeExitEventArgs) Handles arDesigner.EditModeExit
        If (e.Type = ExitType.Save) And (((GrapeCity.ActiveReports.SectionReportModel.ARControl)e.Control).Name = "txtDocumentOwner") Then
            ' save the new value of textbox control in the temporary field
            _global_do = CType(e.Control, TextBox).Text
        End If
    End Sub

See Also