Provides information on the Row before its selection state 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 sealed class GridRowSelectionEventArgs : EventArgs
Visual Basic
Public NotInheritable Class GridRowSelectionEventArgs
	Inherits EventArgs
Visual C++
public ref class GridRowSelectionEventArgs sealed : public EventArgs
F#
[<SealedAttribute>]
type GridRowSelectionEventArgs =  
    class
        inherit EventArgs
    end

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;
    }
};

Inheritance Hierarchy

System..::..Object
  System..::..EventArgs
    Dapfor.Net.Ui..::..GridRowSelectionEventArgs

See Also