Class DrawCellEventArgs
Provides data about the DrawCell event.
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Events
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public sealed class DrawCellEventArgs : GridEventArgs
Constructors
DrawCellEventArgs(Graphics, Rectangle, DataRowBase, GridColumn, Object, String, Int32, Int32, CellStyleInfo, Boolean, Object)
Initializes a new instance of the DrawCellEventArgs class.
Declaration
public DrawCellEventArgs(Graphics graphics, Rectangle bounds, DataRowBase dataRow, GridColumn gridColumn, object cellValue, string displayText, int rowIndex, int colIndex, CellStyleInfo style, bool handle, object originalSender)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | graphics | Graphics context. |
System.Drawing.Rectangle | bounds | Cell boundaries. |
DataRowBase | dataRow | The data Row. |
GridColumn | gridColumn | The grid Column. |
System.Object | cellValue | The cell Value. |
System.String | displayText | The display text Value. |
System.Int32 | rowIndex | The row index. |
System.Int32 | colIndex | The column index. |
CellStyleInfo | style | The CellStyleInfo object that holds cell information. |
System.Boolean | handle | The handle. |
System.Object | originalSender | The source of the event. |
Properties
Bounds
Gets the Cell boundaries including borders and margins.
Declaration
public Rectangle Bounds { get; }
Property Value
Type |
---|
System.Drawing.Rectangle |
CellValue
Gets the actual cell value of a cell.
Declaration
public object CellValue { get; }
Property Value
Type |
---|
System.Object |
Column
Gets the GridColumn of the cell.
Declaration
public GridColumn Column { get; }
Property Value
Type |
---|
GridColumn |
ColumnIndex
Gets the column index of the cell.
Declaration
public int ColumnIndex { get; }
Property Value
Type |
---|
System.Int32 |
DataRow
Gets the data row of the cell.
Declaration
public DataRowBase DataRow { get; }
Property Value
Type |
---|
DataRowBase |
DisplayText
Gets or sets the formatted text that represents the underlying cell value.
Declaration
public string DisplayText { get; set; }
Property Value
Type |
---|
System.String |
Graphics
Gets the Graphics context.
Declaration
public Graphics Graphics { get; }
Property Value
Type |
---|
System.Drawing.Graphics |
Handled
Gets or sets a value indicating whether the drawing of an cell is handled or not.
Declaration
public bool Handled { get; set; }
Property Value
Type |
---|
System.Boolean |
RowIndex
Gets the row index of the cell.
Declaration
public int RowIndex { get; }
Property Value
Type |
---|
System.Int32 |
Style
Gets the style object associated with that cell.
Declaration
public CellStyleInfo Style { get; }
Property Value
Type |
---|
CellStyleInfo |