DataGridLineStyle Enum

Definition

Varning

DataGrid is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use DataGridView instead.

Anger formatet för stödlinjer i en DataGrid.

public enum class DataGridLineStyle
public enum DataGridLineStyle
[System.ComponentModel.Browsable(false)]
[System.Obsolete("`DataGrid` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `DataGridView` instead.", false, DiagnosticId="WFDEV006", UrlFormat="https://aka.ms/winforms-warnings/{0}")]
public enum DataGridLineStyle
type DataGridLineStyle = 
[<System.ComponentModel.Browsable(false)>]
[<System.Obsolete("`DataGrid` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `DataGridView` instead.", false, DiagnosticId="WFDEV006", UrlFormat="https://aka.ms/winforms-warnings/{0}")>]
type DataGridLineStyle = 
Public Enum DataGridLineStyle
Arv
DataGridLineStyle
Attribut

Fält

Name Värde Description
None 0

Inga stödlinjer mellan celler.

Solid 1

Fasta stödlinjer mellan celler.

Exempel

I följande exempel anges egenskapen GridLineStyle till 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

Kommentarer

Använd medlemmarna i den här uppräkningen för att ange värdet för GridLineStyle egenskapen för System.Windows.Forms.DataGrid klassen. Standardvärdet är Solid.

Gäller för

Se även