All pages
Powered by GitBook
1 of 1

Loading...

DataGridViewCellEventArgs

Wisej.Web.DataGridViewCellEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Provides data for DataGridView events related to cell and row operations.

public class DataGridViewCellEventArgs : EventArgs
Public Class DataGridViewCellEventArgs
    Inherits EventArgs

Constructors

DataGridViewCellEventArgs(columnIndex, rowIndex)

Initializes a new instance of the class.

Name
Type
Description

Throws:

  • columnIndex is less than -1, or rowIndex is less than -1.

Properties

ColumnIndex

: Returns a value indicating the column index of the cell that the event occurs for.

Location

: Returns the location of the mouse or pointer event.

Role

: Returns the internal role assigned to the element that generated the pointer event: checkbox, button, ...

The value in the Role property is taken from the "role" attribute of the clicked element inside the cell. You can detect clicks on custom HTML content by adding the role attribute to the custom element.

RowIndex

: Returns a value indicating the row index of the cell that the event occurs for.

X

: Returns the x-coordinate of the mouse or touch event.

Y

: Returns the y-coordinate of the mouse or touch event.

Used By

Name
Description

columnIndex

Int32

The index of the column containing the cell that the event occurs for.

rowIndex

Int32

The index of the row containing the cell that the event occurs for.

DataGridViewCellEventHandler

Represents the method that will handle DataGridView events related to cell and row operations.

DataGridViewCellEventArgs
ArgumentOutOfRangeException
Int32
Point
String
Int32
Int32
Int32