DataGridViewBand.InheritedStyle Property

 

Gets the cell style in effect for the current band, taking into account style inheritance.

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

[BrowsableAttribute(false)]
public virtual DataGridViewCellStyle InheritedStyle { get; }

Property Value

Type: System.Windows.Forms.DataGridViewCellStyle

A DataGridViewCellStyle associated with the DataGridViewBand. The default is null.

The implementation of this property in the DataGridViewBand class always returns null because this base class cannot contain elements.

For more information about style inheritance, see Cell Styles in the Windows Forms DataGridView Control.

.NET Framework
Available since 2.0
Return to top
Show: