DataGrid.OnPaintBackground(PaintEventArgs) Método

Definición

Reemplaza el método OnPaintBackground(PaintEventArgs) para impedir que se dibuje el fondo del control DataGrid.Overrides OnPaintBackground(PaintEventArgs) to prevent painting the background of the DataGrid control.

protected:
 override void OnPaintBackground(System::Windows::Forms::PaintEventArgs ^ ebe);
protected override void OnPaintBackground (System.Windows.Forms.PaintEventArgs ebe);
override this.OnPaintBackground : System.Windows.Forms.PaintEventArgs -> unit
Protected Overrides Sub OnPaintBackground (ebe As PaintEventArgs)

Parámetros

ebe
PaintEventArgs

PaintEventArgs que contiene información sobre el control que se va a pintar.A PaintEventArgs that contains information about the control to paint.

Comentarios

Dado que el System.Windows.Forms.DataGrid es un control complejo, esta invalidación se implementa para que no tenga ninguna acción.Because the System.Windows.Forms.DataGrid is a complex control, this override is implemented to have no action. Por lo tanto, llamar a este método no tendrá ningún efecto.Therefore, calling this method will have no effect.

Se aplica a