DataGridLineStyle Enum
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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
- 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.