DataGrid.ParentRowsLabelStyle プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As DataGrid Dim value As DataGridParentRowsLabelStyle value = instance.ParentRowsLabelStyle instance.ParentRowsLabelStyle = value
public: property DataGridParentRowsLabelStyle ParentRowsLabelStyle { DataGridParentRowsLabelStyle get (); void set (DataGridParentRowsLabelStyle value); }
/** @property */ public DataGridParentRowsLabelStyle get_ParentRowsLabelStyle () /** @property */ public void set_ParentRowsLabelStyle (DataGridParentRowsLabelStyle value)
public function get ParentRowsLabelStyle () : DataGridParentRowsLabelStyle public function set ParentRowsLabelStyle (value : DataGridParentRowsLabelStyle)
DataGridParentRowsLabelStyle 値の 1 つ。既定値は Both です。


ParentRowsLabelStyle プロパティに指定できる値の循環処理を設定するコード例を次に示します。
Private Sub ChangeParentRowLabels(ByVal myGrid As DataGrid) Static currentLabelStyle As Integer If currentLabelStyle = 4 Then currentLabelStyle = 0 Select Case currentLabelStyle Case 0 myGrid.ParentRowsLabelStyle = DataGridParentRowsLabelStyle.None Case 1 myGrid.ParentRowsLabelStyle = DataGridParentRowsLabelStyle.TableName Case 2 myGrid.ParentRowsLabelStyle = DataGridParentRowsLabelStyle.ColumnName Case 3 myGrid.ParentRowsLabelStyle = DataGridParentRowsLabelStyle.Both Case Else myGrid.ParentRowsLabelStyle = DataGridParentRowsLabelStyle.Both End Select End Sub

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DataGridParentRowsLabelStyle 列挙体
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Public Enumeration DataGridParentRowsLabelStyle


この列挙体のメンバを使用して、ParentRowsLabelStyle プロパティの値を設定します。
DataGrid に第 2 の DataTable への DataRelation が少なくとも 1 つある場合や、AllowNavigation プロパティが移動を許可する値に設定されている場合だけ、親行が表示されます。

DataGridParentRowsLabelStyle に指定できる値を反復処理する例を次に示します。
Private Sub ChangeParentRowLabels(ByVal myGrid As DataGrid) Static currentLabelStyle As Integer If currentLabelStyle = 4 Then currentLabelStyle = 0 Select Case currentLabelStyle Case 0 myGrid.ParentRowsLabelStyle = DataGridParentRowsLabelStyle.None Case 1 myGrid.ParentRowsLabelStyle = DataGridParentRowsLabelStyle.TableName Case 2 myGrid.ParentRowsLabelStyle = DataGridParentRowsLabelStyle.ColumnName Case 3 myGrid.ParentRowsLabelStyle = DataGridParentRowsLabelStyle.Both Case Else myGrid.ParentRowsLabelStyle = DataGridParentRowsLabelStyle.Both End Select ' Increment the variable. currentLabelStyle+=1 End Sub

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からDataGridParentRowsLabelStyleを検索する場合は、下記のリンクをクリックしてください。

- DataGridParentRowsLabelStyleのページへのリンク