Back to Devexpress

GridControl.Paint Event

windowsforms-devexpress-dot-xtragrid-dot-gridcontrol-14bd6d9b.md

latest2.7 KB
Original Source

GridControl.Paint Event

Use the GridControl.PaintEx event instead.

Namespace : DevExpress.XtraGrid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public event PaintEventHandler Paint
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Event Paint As PaintEventHandler

Event Data

The Paint event's data class is PaintEventArgs. The following properties provide information specific to this event:

PropertyDescription
ClipRectangleGets the rectangle in which to paint.
GraphicsGets the graphics used to paint.

The event data class exposes the following methods:

MethodDescription
Dispose()Releases all resources used by the PaintEventArgs.
Dispose(Boolean)Releases the unmanaged resources used by the PaintEventArgs and optionally releases the managed resources.
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.

See Also

PaintEx

GridControl Class

GridControl Members

DevExpress.XtraGrid Namespace