DataGridParentRowsLabelStyle 열거형

정의

DataGrid 컨트롤의 부모 행 레이블이 표시되는 모양을 지정합니다.

public enum class DataGridParentRowsLabelStyle
public enum DataGridParentRowsLabelStyle
type DataGridParentRowsLabelStyle = 
Public Enum DataGridParentRowsLabelStyle
상속
DataGridParentRowsLabelStyle

필드

Both 3

부모 테이블과 열 이름을 모두 표시합니다.

ColumnName 2

부모 열 이름을 표시합니다.

None 0

부모 행 레이블을 표시하지 않습니다.

TableName 1

부모 테이블 이름을 표시합니다.

예제

다음 예제에 사용 가능한 값의 각 반복은 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

설명

이 열거형의 멤버 값을 설정 하는 데는 ParentRowsLabelStyle 속성입니다.

경우에 부모 행을 표시할 수 있습니다는 DataGrid 하나 이상 포함 DataRelation 를 두 번째 DataTable, 경우에 AllowNavigation 속성 탐색을 허용 하는 값으로 설정 됩니다.

적용 대상

추가 정보