WebGrid.Table 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
instance 렌더링하는 데 사용되는 HTML 태그를 WebGrid 반환합니다.
public System.Web.IHtmlString Table(string tableStyle = default, string headerStyle = default, string footerStyle = default, string rowStyle = default, string alternatingRowStyle = default, string selectedRowStyle = default, string caption = default, bool displayHeader = true, bool fillEmptyRows = false, string emptyRowCellValue = default, System.Collections.Generic.IEnumerable<System.Web.Helpers.WebGridColumn> columns = default, System.Collections.Generic.IEnumerable<string> exclusions = default, Func<dynamic,object> footer = default, object htmlAttributes = default);
member this.Table : string * string * string * string * string * string * string * bool * bool * string * seq<System.Web.Helpers.WebGridColumn> * seq<string> * Func<obj, obj> * obj -> System.Web.IHtmlString
Public Function Table (Optional tableStyle As String = null, Optional headerStyle As String = null, Optional footerStyle As String = null, Optional rowStyle As String = null, Optional alternatingRowStyle As String = null, Optional selectedRowStyle As String = null, Optional caption As String = null, Optional displayHeader As Boolean = true, Optional fillEmptyRows As Boolean = false, Optional emptyRowCellValue As String = null, Optional columns As IEnumerable(Of WebGridColumn) = null, Optional exclusions As IEnumerable(Of String) = null, Optional footer As Func(Of Object, Object) = null, Optional htmlAttributes As Object = null) As IHtmlString
매개 변수
- tableStyle
- String
전체 테이블의 스타일을 지정하는 데 사용되는 CSS 클래스의 이름입니다.
- headerStyle
- String
테이블 머리글의 스타일을 지정하는 데 사용되는 CSS 클래스의 이름입니다.
- footerStyle
- String
테이블 바닥글의 스타일을 지정하는 데 사용되는 CSS 클래스의 이름입니다.
- rowStyle
- String
각 테이블 행의 스타일을 지정하는 데 사용되는 CSS 클래스의 이름입니다.
- alternatingRowStyle
- String
짝수 테이블 행의 스타일을 지정하는 데 사용되는 CSS 클래스의 이름입니다.
- selectedRowStyle
- String
선택된 테이블 행의 스타일을 지정하는 데 사용되는 CSS 클래스의 이름입니다.
- caption
- String
표 캡션입니다.
- displayHeader
- Boolean
true이면 테이블 머리글이 표시됩니다. 그렇지 않으면 false입니다. 기본값은 true입니다.
- fillEmptyRows
- Boolean
true이면 마지막 페이지를 채울 데이터 항목이 부족한 경우 마지막 페이지에 추가 행을 삽입합니다. 그렇지 않으면 false입니다. 기본값은 false입니다. 매개 변수로 지정된 텍스트를 사용하여 추가 행이 emptyRowCellValue
채워집니다.
- emptyRowCellValue
- String
데이터 항목이 마지막 페이지를 채우기에 부족한 경우 마지막 페이지에 추가 행을 채우는 데 사용되는 텍스트입니다.
fillEmptyRows
이러한 추가 행을 표시하려면 매개 변수를 true로 설정해야 합니다.
- columns
- IEnumerable<WebGridColumn>
각 열이 표시되는 방식을 지정하는 인스턴스의 컬렉션 WebGridColumn 입니다. 여기에는 각 표의 열과 연관된 데이터 열 및 각 표의 열을 포함하는 데이터 값의 형식을 지정하는 방법이 포함됩니다.
- exclusions
- IEnumerable<String>
표에서 열을 자동으로 채울 때 제외할 데이터 열의 이름을 포함하는 컬렉션입니다.
반환
완전히 채워진 WebGrid instance 나타내는 HTML 태그입니다.