DataGridViewBand.Clone Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates an exact copy of this band.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual object Clone()

Return Value

Type: System.Object

An Object that represents the cloned DataGridViewBand.

Use this method to duplicate a row or column of cells.

Notes to Inheritors:

When overriding Clone in a derived class, call the base class's Clone method so that the properties of the base class are copied to the new band, and be sure to also copy the values of any properties that were added to the derived class.

.NET Framework
Available since 2.0
Return to top
Show: