Share via


WebGrid.Bind メソッド

定義

指定したデータをインスタンスに WebGrid バインドします。

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

インスタンスの並べ替えとページングを有効にする場合は WebGrid true、それ以外の場合は false。

rowCount
Int32

グリッドの各ページに表示される行数。

戻り値

バインドされたインスタンスと設定された WebGrid インスタンス。

適用対象