DataGridViewCellEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Provides data for DataGridView events related to cell and row operations.
- C#
- VB.NET
public class DataGridViewCellEventArgs : EventArgs
Public Class DataGridViewCellEventArgs
Inherits EventArgs
Constructors
DataGridViewCellEventArgs(columnIndex, rowIndex)
Initializes a new instance of the DataGridViewCellEventArgs class.
| Name | Type | 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. |
Throws:
- ArgumentOutOfRangeException columnIndex is less than -1, or rowIndex is less than -1.
Properties
ColumnIndex
Int32: Returns a value indicating the column index of the cell that the event occurs for.
Location
Point: Returns the location of the mouse or pointer event.
Role
String: 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
Int32: Returns a value indicating the row index of the cell that the event occurs for.
X
Int32: Returns the x-coordinate of the mouse or touch event.
Y
Int32: Returns the y-coordinate of the mouse or touch event.
Used By
| Name | Description |
|---|---|
| DataGridViewCellEventHandler | Represents the method that will handle DataGridView events related to cell and row operations. |