MobileForms Toolkit Documentation

SmartGrid.CheckBoxEdit Event

CheckBoxEdit event is fired whenever a cell is clicked in the column that has a CellEdit property set to CellEditType.CheckBox.

public event CheckBoxEditHandler CheckBoxEdit;

Event Data

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

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled.
OldState Gets the old state of checkbox.

Remarks

Argument for this event is of type CheckBoxEditEventArgs. It contains the state of the CheckBox before it was clicked. The new state is always negation of the old state.

Since CheckBoxEditEvetArgs is derived from CancelEventArgs, this event can be cancelled. This can be useful if yo want to keep the old value in the cell

See Also

SmartGrid Class | Resco.Controls.SmartGrid Namespace