DataGridTextCellDraw Method

Draws the contents of the cell.

Definition

Namespace: BeeMobile.DataGrid
Assembly: BeeMobile.DataGrid.NET48 (in BeeMobile.DataGrid.NET48.dll) Version: 4.8.1.19
C#
protected override void Draw(
	Graphics gr,
	Rectangle aBounds,
	Color aForeColor,
	DataGridColumn aDataGridColumn
)

Parameters

gr  Graphics
A Graphics object to draw to.
aBounds  Rectangle
A Rectangle representing the bounds of the drawing.
aForeColor  Color
Foreground color that you should use to perform the drawing.
aDataGridColumn  DataGridColumn
Reference to DataGridColumn in which the cell belongs.

Remarks

Method calls the ToString method for the underlying data object to convert it to a string. Then it uses DrawString method of Graphics do draw the data.

See Also