DataGridLineStyle Enumeráció
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Figyelemfelhívás
DataGrid is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use DataGridView instead.
A rácsvonalak stílusát adja meg egy 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
- Öröklődés
- Attribútumok
Mezők
| Name | Érték | Description |
|---|---|---|
| None | 0 | Nincsenek rácsvonalak a cellák között. |
| Solid | 1 | Egyszínű rácsvonalak a cellák között. |
Példák
Az alábbi példa a tulajdonságot a GridLineStyle következőre DataGridLineStyle.Noneállítja: .
private:
void SetGridLineAttributes()
{
dataGrid1->GridLineStyle = DataGridLineStyle::None;
}
private void SetGridLineAttributes()
{
dataGrid1.GridLineStyle = DataGridLineStyle.None;
}
Private Sub SetGridLineAttributes()
dataGrid1.GridLineStyle = DataGridLineStyle.None
End Sub
Megjegyzések
Az enumerálás tagjaival állítsa be az GridLineStyle osztály tulajdonságának System.Windows.Forms.DataGrid értékét. Az alapértelmezett érték a Solid.