다음을 통해 공유


WebGrid.Bind 메서드

정의

지정된 데이터를 WebGrid instance 바인딩합니다.

public System.Web.Helpers.WebGrid Bind(System.Collections.Generic.IEnumerable<dynamic> source, System.Collections.Generic.IEnumerable<string> columnNames = default, bool autoSortAndPage = true, int rowCount = -1);
member this.Bind : seq<obj> * seq<string> * bool * int -> System.Web.Helpers.WebGrid
Public Function Bind (source As IEnumerable(Of Object), Optional columnNames As IEnumerable(Of String) = null, Optional autoSortAndPage As Boolean = true, Optional rowCount As Integer = -1) As WebGrid

매개 변수

source
IEnumerable<Object>

표시할 데이터입니다.

columnNames
IEnumerable<String>

바인딩할 데이터 열의 이름을 포함하는 컬렉션입니다.

autoSortAndPage
Boolean

instance 정렬 및 페이징을 WebGrid 사용하도록 설정하려면 true이고, 그렇지 않으면 false입니다.

rowCount
Int32

표의 각 페이지에 표시할 행의 수입니다.

반환

바인딩되고 채워진 WebGrid instance.

적용 대상