CellEventArgs

EventArgsReferences
Event arguments for events that refer to a Cell.

Constructors

CellEventArgs

#
public CellEventArgs(Grid grid, Cell cell, int row, int column, object item, CellStates cellState, Control control)
Initializes a new instance of the CellEventArgs class.
grid (Grid)Grid the event is triggered for.
cell (Cell)Cell the event is triggered for.
row (int)Row for the cell.
column (int)Column for the cell.
item (object)Item the cell is displaying.
cellState (CellStates)State of the cell.
control (Control)Control object for the cell (if any)

CellEventArgs

#
public CellEventArgs(Grid grid, Cell cell, int row, object item, CellStates cellState)
obsoleteUse constructor with column number and control
Initializes a new instance of the CellEventArgs class.
grid (Grid)Grid the event is triggered for.
cell (Cell)Cell the event is triggered for.
row (int)Row for the cell.
item (object)Item the cell is displaying.
cellState (CellStates)State of the cell.

CellEventArgs

#
public CellEventArgs(int row, object item, CellStates cellState)
obsoleteUse overload that passes the custom cell these arguments are for
Initializes a new instance of the CellEventArgs class.
row (int)Row for the cell.
item (object)Item the cell is displaying.
cellState (CellStates)State of the cell.

Properties

CellState

#
public CellStates CellState { get; protected set; }
Gets the state of the cell.

CellTextColor

#
public Color CellTextColor { get; protected set; }
Gets or sets the preferred color of the cell text given its state.

Column

#
public virtual int Column { get; }
Gets the column index for the cell.

Control

#
public Control Control { get; protected set; }
Gets the custom control associated with the cell (if any)

GridColumn

#
public GridColumn GridColumn { get; }
Gets the column for the cell.

Handled

#
public bool Handled { get; set; }
Gets or sets a value indicating that the default behavior should not be executed for the event, if supported.
Remarks: Note that not all events can be handled.
True if the event is user-handled, false to use system behavior.

IsEditing

#
public bool IsEditing { get; protected set; }
Gets or sets a value indicating whether the cell is in edit mode.

IsSelected

#
public bool IsSelected { get; protected set; }
Gets or sets a value indicating whether the cell is selected.

Item

#
public object Item { get; protected set; }
Gets or sets the item for the cell.

Row

#
public virtual int Row { get; protected set; }
Gets or sets the row for the cell.

Methods

Events