Skip to main content
A newer version of this page is available. .

CheckEdit.CheckedChanged Event

Fires after the CheckEdit.Checked property value has been changed.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[DXCategory("Events")]
public event EventHandler CheckedChanged

Event Data

The CheckedChanged event's data class is EventArgs.

Remarks

The editor’s CheckedChanged event is the equivalent of the RepositoryItemCheckEdit.CheckedChanged event available from the CheckEdit.Properties object. When you add/remove an event handler for the current event, you actually affect the RepositoryItemCheckEdit.CheckedChanged event.

The code sample below allows you to determine if the checked state changed programmatically, or if a user changed it manually.


checkEdit1.Click += checkEdit1_Click;
checkEdit1.CheckedChanged += checkEdit1_CheckedChanged;
bool IsClick = false;
private void checkEdit1_Click(object sender, EventArgs e)
{
    IsClick = true;
}private void checkEdit1_CheckedChanged(object sender, EventArgs e)
{
    if (IsClick)
    {
        // a user has clicked the CheckEdit
        // react to user's action
        IsClick = false;
    }
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the CheckedChanged event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also