Table of Contents

Class NoxGridCellMouseEventArgs

Namespace
Nox.Grid.WinForms
Assembly
Nox.Grid.WinForms.dll

Mouse event on a cell (DataGridView's DataGridViewCellMouseEventArgs). X and Y are relative to the cell. Column header: RowIndex = -1. Row header: ColumnIndex = -1. Top-left corner: both -1.

public class NoxGridCellMouseEventArgs : MouseEventArgs
Inheritance
NoxGridCellMouseEventArgs
Inherited Members

Constructors

NoxGridCellMouseEventArgs(int, int, NoxGridColumn, int, int, MouseEventArgs, Point, Keys)

Creates the event data.

public NoxGridCellMouseEventArgs(int rowIndex, int columnIndex, NoxGridColumn column, int localX, int localY, MouseEventArgs e, Point gridLocation, Keys modifiers)

Parameters

rowIndex int
columnIndex int
column NoxGridColumn
localX int
localY int
e MouseEventArgs
gridLocation Point
modifiers Keys

Properties

Column

The column (Nothing for a row header).

public NoxGridColumn Column { get; }

Property Value

NoxGridColumn

ColumnIndex

Column index (Columns order; -1 for a row header).

public int ColumnIndex { get; }

Property Value

int

GridLocation

Mouse position in grid coordinates (X and Y are relative to the cell).

public Point GridLocation { get; }

Property Value

Point

Handled

CellMouseDown: true skips the grid's own handling (check box toggle, selection, column drag). ColumnHeaderMouseClick: true skips sorting.

public bool Handled { get; set; }

Property Value

bool

Modifiers

Shift, Ctrl and Alt held at that moment.

public Keys Modifiers { get; }

Property Value

Keys

RowIndex

Row index of the cell (-1 for a column header).

public int RowIndex { get; }

Property Value

int