DataGridHeadersVisibility 枚举

定义

定义指定 DataGrid 中的行和列标题的可见性的常数。

此枚举支持其成员值的按位组合。

C#
[System.Flags]
public enum DataGridHeadersVisibility
继承
DataGridHeadersVisibility
属性

字段

All 3

行标题和列标题均可见。

Column 1

只有列标题可见。

None 0

没有任何标题可见。

Row 2

只有行标题可见。

注解

该属性使用此 HeadersVisibility 枚举。

标头的样式由 RowHeaderStyle 属性 ColumnHeaderStyle 决定。

适用于

产品 版本
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

另请参阅