MobileForms Toolkit Documentation

SmartGrid.SelectionChanging Event

Fires when ActiveRowIndex or ActiveColumnIndex is going to be changed.

public event SelectionChangingHandler SelectionChanging;

Event Data

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

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled.
NewActiveColumnIndex Returns an index of a column that is going to be active.
NewActiveRowIndex Returns an index of a row that is going to be active.
OldActiveColumnIndex Returns an index of a column that is now active.
OldActiveRowIndex Returns an index of a row that is now active.

Remarks

Event is cancellable, to cancel selection, set e.Cancel = true;

See Also

SmartGrid Class | Resco.Controls.SmartGrid Namespace