DataGrid.OnPaintBackground(PaintEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Parameters
- ebe
- PaintEventArgs
A PaintEventArgs that contains information about the control to paint.
Remarks
Because the System.Windows.Forms.DataGrid is a complex control, this override is implemented to have no action. Therefore, calling this method will have no effect.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.