Occurs when the Row's selection is changed.

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
public event EventHandler<GridRowSelectionEventArgs> SelectionChanging
Visual Basic
Public Event SelectionChanging As EventHandler(Of GridRowSelectionEventArgs)
Visual C++
public:
 event EventHandler<GridRowSelectionEventArgs^>^ SelectionChanging {
	void add (EventHandler<GridRowSelectionEventArgs^>^ value);
	void remove (EventHandler<GridRowSelectionEventArgs^>^ value);
}
F#
member SelectionChanging : IEvent<EventHandler<GridRowSelectionEventArgs>,
    GridRowSelectionEventArgs>

Value

Type: System..::..EventHandler<(Of <(<'GridRowSelectionEventArgs>)>)>

Examples

 Copy imageCopy
grid.SelectionChanging += delegate(object sender, GridRowSelectionEventArgs e)
{
    //The first row will always be selected
    if(e.Row.VisibleIndex == 0)
    {
        e.NewSelectionState = true;
    }

    //The second row will always be unselected
    if (e.Row.VisibleIndex == 1)
    {
        e.NewSelectionState = false;
    }
};

Thread Safety

This event is always raised in the GUI thread

See Also