DataGridColumnStyle.DataGridTableStyle Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the DataGridTableStyle for the column.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(false)]
public virtual DataGridTableStyle DataGridTableStyle { get; }

Property Value

Type: System.Windows.Forms.DataGridTableStyle

The DataGridTableStyle that contains the current DataGridColumnStyle.

The following code example prints the MappingName of a DataGridTableStyle that contains a DataGridColumnStyle.

Private Sub PrintTableMappingName _
(ByVal myColumnStyle As DataGridColumnStyle)
    Console.WriteLine _
    (myColumnStyle.DataGridTableStyle.MappingName)
End Sub

.NET Framework
Available since 1.1
Return to top
Show: