DataGridViewRow.InheritedStyle Egenskap

Definition

Hämtar cellformatet i kraft för raden.

public:
 virtual property System::Windows::Forms::DataGridViewCellStyle ^ InheritedStyle { System::Windows::Forms::DataGridViewCellStyle ^ get(); };
public override System.Windows.Forms.DataGridViewCellStyle InheritedStyle { get; }
member this.InheritedStyle : System.Windows.Forms.DataGridViewCellStyle
Public Overrides ReadOnly Property InheritedStyle As DataGridViewCellStyle

Egenskapsvärde

En DataGridViewCellStyle som anger formaterings- och formatinformation för cellerna på raden.

Undantag

Raden finns i en DataGridView kontroll och är en delad rad.

Kommentarer

Den här egenskapen är användbar för att avgöra vilka cellformat som tillämpas på alla celler i en rad oavsett vilka kolumnformat som också tillämpas på cellerna. Radegenskapen InheritedStyle ärver sina värden från följande egenskaper:

För mer information om hur cellformat ärvs, se Cellformat i Windows Forms DataGridView Control.

Gäller för

Se även