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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- DataGridParentRowsLabelStyle 列挙体のページへのリンク