Nevron.UI.WinForm.Controls Namespace / NDataGridView Class / CellPainting Event


In This Topic
    CellPainting Event
    In This Topic
    Syntax
    'Declaration
     
    
    <SRCategoryAttribute("CatDisplay")>
    <SRDescriptionAttribute("DataGridView_CellPaintingDescr")>
    Public Event CellPainting As System.Windows.Forms.DataGridViewCellPaintingEventHandler
    'Usage
     
    
    Dim instance As NDataGridView
    Dim handler As System.Windows.Forms.DataGridViewCellPaintingEventHandler
     
    AddHandler instance.CellPainting, handler
    [SRCategory("CatDisplay")]
    [SRDescription("DataGridView_CellPaintingDescr")]
    public event System.Windows.Forms.DataGridViewCellPaintingEventHandler CellPainting
    Event Data

    The event handler receives an argument of type System.Windows.Forms.DataGridViewCellPaintingEventArgs containing data related to this event. The following DataGridViewCellPaintingEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets the border style of the current System.Windows.Forms.DataGridViewCell.  
    Get the bounds of the current System.Windows.Forms.DataGridViewCell.  
    Gets the cell style of the current System.Windows.Forms.DataGridViewCell.  
    Gets the area of the System.Windows.Forms.DataGridView that needs to be repainted.  
    Gets the column index of the current System.Windows.Forms.DataGridViewCell.  
    Gets a string that represents an error message for the current System.Windows.Forms.DataGridViewCell.  
    Gets the formatted value of the current System.Windows.Forms.DataGridViewCell.  
    Gets the System.Drawing.Graphics used to paint the current System.Windows.Forms.DataGridViewCell.  
    (Inherited from System.ComponentModel.HandledEventArgs)
    The cell parts that are to be painted.  
    Gets the row index of the current System.Windows.Forms.DataGridViewCell.  
    Gets the state of the current System.Windows.Forms.DataGridViewCell.  
    Gets the value of the current System.Windows.Forms.DataGridViewCell.  
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also