BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Protected Overrides Sub OnDraw(ByVal g As System.Drawing.Graphics, ByVal clientRectangle As System.Drawing.Rectangle, ByVal rowIndex As Integer, ByVal colIndex As Integer, ByVal style As Syncfusion.Windows.Forms.Grid.GridStyleInfo)
clientRectangle.Inflate(-1, -1)
style.Control = Nothing
If Not Me.ShouldDrawFocused(rowIndex, colIndex) Then
staticGridInCell.Tag = New Point(colIndex, rowIndex)
staticGridInCell.Refresh()
style.Control = staticGridInCell
Else
activeGridInCell.Tag = New Point(colIndex, rowIndex)
activeGridInCell.Refresh()
style.Control = activeGridInCell
Dim planifGridUC As PlanificationGridUC = Grid.Parent
planifGridUC.ActiveUserControl.Hide()
End If
MyBase.OnDraw(g, clientRectangle, rowIndex, colIndex, style)
End Sub ''OnDraw