DataGridLineStyle 枚举

定义

指定 DataGrid 中的网格线样式。Specifies the style of gridlines in a DataGrid.

public enum class DataGridLineStyle
public enum DataGridLineStyle
type DataGridLineStyle = 
Public Enum DataGridLineStyle
继承
DataGridLineStyle

字段

None 0

单元格之间没有网格线。No gridlines between cells.

Solid 1

单元格之间为实网格线。Solid gridlines between cells.

示例

下面的示例将GridLineStyle属性设置为。 DataGridLineStyle.NoneThe following example sets the GridLineStyle property to DataGridLineStyle.None.

private:
   void SetGridLineAttributes()
   {
      dataGrid1->GridLineStyle = DataGridLineStyle::None;
   }
private void SetGridLineAttributes()
{
   dataGrid1.GridLineStyle = DataGridLineStyle.None;
}
Private Sub SetGridLineAttributes()
    dataGrid1.GridLineStyle = DataGridLineStyle.None
End Sub

注解

使用此枚举的成员设置GridLineStyle System.Windows.Forms.DataGrid类的属性的值。Use the members of this enumeration to set the value of the GridLineStyle property of the System.Windows.Forms.DataGrid class. 默认值为 SolidThe default is Solid.

适用于

另请参阅