GridRowFormatEventArgs

EventArgsReferences
public abstract class GridRowFormatEventArgs : EventArgs
Event arguments for formatting a row in a Grid using the Grid.RowFormatting event.

Constructors

GridRowFormatEventArgs

#
public GridRowFormatEventArgs(object item, int row)
Initializes a new instance of the GridRowFormatEventArgs class.
item (object)Item for the row being formatted
row (int)Row number being formatted

Properties

BackgroundColor

#
public abstract Color BackgroundColor { get; set; }
Gets or sets the background color for the cell

Item

#
public object Item { get; }
Gets the item that is associated with the row being formatted

Row

#
public int Row { get; }
Gets the row number in the data source

Methods

GetRow

#
protected virtual int GetRow()
Overridable method to get the row number for this event.
Remarks: This is used for situations when getting the row might be computationally expensive on certain platforms, e.g. with the TreeGridView on Gtk.
The row for the item to format