Syncfusion.Grid.Windows


The System.Drawing.Graphics context of the canvas.
The row index.
The column index.
The System.Drawing.Rectangle with the bounds.
The GridStyleInfo object that holds cell information.

OnDrawItem Method (GridControlBase)

You should override OnDrawCell instead.
Syntax
'Declaration
 
Public Overridable Sub OnDrawItem( _
   ByVal g As Graphics, _
   ByVal rowIndex As Integer, _
   ByVal colIndex As Integer, _
   ByVal rectItem As Rectangle, _
   ByVal style As GridStyleInfo _
) 
'Usage
 
Dim instance As GridControlBase
Dim g As Graphics
Dim rowIndex As Integer
Dim colIndex As Integer
Dim rectItem As Rectangle
Dim style As GridStyleInfo
 
instance.OnDrawItem(g, rowIndex, colIndex, rectItem, style)
public virtual void OnDrawItem( 
   Graphics g,
   int rowIndex,
   int colIndex,
   Rectangle rectItem,
   GridStyleInfo style
)

Parameters

g
The System.Drawing.Graphics context of the canvas.
rowIndex
The row index.
colIndex
The column index.
rectItem
The System.Drawing.Rectangle with the bounds.
style
The GridStyleInfo object that holds cell information.
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also