DrawCellFrameAppearance Event

Occurs for every cell before the grid draws the frame (sunken or raised) of a specified cell and after the cell's background was drawn.
<DescriptionAttribute("Occurs for every cell that is being drawn before the grid draws the frame (sunken or raised).")>
Public Event DrawCellFrameAppearance As GridDrawCellBackgroundEventHandler
Dim instance As GridControlBase
Dim handler As GridDrawCellBackgroundEventHandler
AddHandler instance.DrawCellFrameAppearance, handler
[Description("Occurs for every cell that is being drawn before the grid draws the frame (sunken or raised).")]
public event GridDrawCellBackgroundEventHandler DrawCellFrameAppearance
Event Data

The event handler receives an argument of type GridDrawCellBackgroundEventArgs containing data related to this event. The following GridDrawCellBackgroundEventArgs properties provide information specific to this event.

(Inherited from System.ComponentModel.CancelEventArgs)
Gets the visible cell area excluding cell parts that are scrolled out of view.  
Gets Graphics context.  
Gets a value indicating whether this is a bannered cell.  
Gets a value indicating whether the graphics canvas already clips the drawing contents.  
Gets a value indicating whether colored background should be drawn or black and white (see GridProperties.BlackWhite.  
Gets the cell's range. Can be several rows or columns if cell is a covered, floated, merged, or bannered cell.  
Gets the style object associated with that cell.  
Gets Cell boundaries including borders and margins.  
Set e.Cancel = True if you want to customize the drawing of the frame and do not want the grid with its default drawing for the cell's frame.

If you want to draw custom borders around a cell, be sure to reserve space for the extra area occupied by your borders. See GridStyleInfo.BorderMargins.


Syncfusion.Grid.Windows: 18.2460.0.44

See Also